Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OSE
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
OSE
Commits
7b4f8fd5
Commit
7b4f8fd5
authored
Dec 3, 2021
by
Laurent Lecluse
Browse files
Options
Downloads
Patches
Plain Diff
Prise en compte des accents dans les recherches (
#40917
)
parent
503833fe
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+2
-1
2 additions, 1 deletion
CHANGELOG.md
public/js/app.js
+37
-0
37 additions, 0 deletions
public/js/app.js
with
39 additions
and
1 deletion
CHANGELOG.md
+
2
−
1
View file @
7b4f8fd5
...
...
@@ -32,10 +32,11 @@ Objectif : Plafonds personnalisables
*
Ajout du numéro de SIRET au niveau de la table employeur et suppression de la contrainte d'unicité sur le SIREN (Tâche #40810)
## Correction de bug
## Correction
s
de bug
s
*
Correction sur l'horodatage du service prévisionnel qui se mettait à jour lors de la création ou suppresion d'un contrat (#40925)
*
Correction de bug empêchant le calcul des charges d'enseignement (#40991)
*
Prise en compte des accents dans les recherches (#40917)
## Notes de mise à jour
...
...
This diff is collapsed.
Click to expand it.
public/js/app.js
+
37
−
0
View file @
7b4f8fd5
...
...
@@ -3,6 +3,7 @@ $(function ()
WidgetInitializer
.
add
(
'
selectpicker
'
,
'
selectpicker
'
,
function
()
{
WidgetInitializer
.
includeJs
(
Url
(
'
vendor/bootstrap-select-1.9.4/dist/js/bootstrap-select.min.js
'
));
WidgetInitializer
.
includeCss
(
Url
(
'
vendor/bootstrap-select-1.9.4/dist/css/bootstrap-select.min.css
'
));
$
(
'
.selectpicker
'
).
data
(
'
liveSearchNormalize
'
,
true
);
// insensible aux accents
});
WidgetInitializer
.
add
(
'
intervenant-recherche
'
,
'
intervenantRecherche
'
,
function
()
{
...
...
@@ -23,6 +24,42 @@ $(function ()
WidgetInitializer
.
includeCss
(
Url
(
'
vendor/DataTables-1.10.12/media/css/dataTables.bootstrap.min.css
'
));
WidgetInitializer
.
includeJs
(
Url
(
'
table-sort/widget.js
'
));
(
function
()
{
function
removeAccents
(
data
)
{
if
(
data
.
normalize
)
{
// Use I18n API if avaiable to split characters and accents, then remove
// the accents wholesale. Note that we use the original data as well as
// the new to allow for searching of either form.
return
data
+
'
'
+
data
.
normalize
(
'
NFD
'
)
.
replace
(
/
[\u
0300-
\u
036f
]
/g
,
''
);
}
return
data
;
}
var
searchType
=
jQuery
.
fn
.
DataTable
.
ext
.
type
.
search
;
searchType
.
string
=
function
(
data
)
{
return
!
data
?
''
:
typeof
data
===
'
string
'
?
removeAccents
(
data
)
:
data
;
};
searchType
.
html
=
function
(
data
)
{
return
!
data
?
''
:
typeof
data
===
'
string
'
?
removeAccents
(
data
.
replace
(
/<.*
?
>/g
,
''
))
:
data
;
};
}());
});
/* Services */
...
...
This diff is collapsed.
Click to expand it.
Laurent Lecluse
@lecluse
mentioned in commit
9c7b8e35
·
Dec 6, 2021
mentioned in commit
9c7b8e35
mentioned in commit 9c7b8e35ac3b6f0bb3437577c9aeb946dd0c160a
Toggle commit list
Laurent Lecluse
@lecluse
mentioned in merge request
!96 (merged)
·
Dec 6, 2021
mentioned in merge request
!96 (merged)
mentioned in merge request !96
Toggle commit list
Laurent Lecluse
@lecluse
mentioned in commit
0e03390c
·
Dec 6, 2021
mentioned in commit
0e03390c
mentioned in commit 0e03390c4e44fe295304efb1a66875b9e4c0edd4
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment