Skip to content
Snippets Groups Projects
Commit a21b2aeb authored by Henri-Damien LAURENT's avatar Henri-Damien LAURENT
Browse files

Merge branch 'dev#215559_1_pt_critere_111_champs_de_recherche' into 'master'

dev#215559 : RGAA/WCAG : search input autocomplete donot submit on tab

See merge request !5125
parents fd136eaa fdb09360
Branches
1 merge request!5125dev#215559 : RGAA/WCAG : search input autocomplete donot submit on tab
Pipeline #49197 failed with stage
in 1 hour, 10 minutes, and 35 seconds
- fonctionnalité #215559 : RGAA : le champs de recherche avec autocompletion ne soumet plus la recherche quand on utilise la tabulation
\ No newline at end of file
......@@ -58,7 +58,11 @@ section {
background: transparent !important;
}
.ui-autocomplete li:hover {
.ui-autocomplete .ui-state-active,
.ui-autocomplete li:hover,
.ui-autocomplete li:focus,
.ui-autocomplete li:active,
.ui-autocomplete li:target {
border: none !important;
background: transparent !important;
}
......@@ -75,7 +79,11 @@ section {
padding: 4px !important;
}
.ui-autocomplete a:hover {
.ui-autocomplete .ui-state-active,
.ui-autocomplete a:hover,
.ui-autocomplete a:focus,
.ui-autocomplete a:active,
.ui-autocomplete a:target {
border: none;
margin: 1px !important;
padding: 4px !important;
......@@ -247,3 +255,8 @@ body[data-admin_level=""] [data-level="expert"] {
#opac-dialog > div.bokeh_jumbotron {
display: none;
}
::-webkit-search-cancel-button
{
display: none;
}
......@@ -33,10 +33,15 @@
});
};
this.options.select = function(event, ui) {
$(this).val(ui.item.value);
$(this).closest('form').submit();
return false;
this.options.focus = function(event, ui) {
return false;
},
this.options.select = function(event, ui) {
$(this).val(ui.item.value);
if (13 == event.keyCode || undefined == event.keyCode)
$(this).closest('form').submit();
}
},
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment