X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fjquery%2Fjquery.suggestions.js;h=39c601f3a3498a9a662c6be7abff623c0521ba3d;hb=d6d9e4e3a707fa0261848761d90da5d8b2320bdb;hp=4f4edc96b5fe950cbc784d3ac07331198fac32a6;hpb=d9f26ac12671474f6cd9c75228fce8042489c5f2;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/jquery/jquery.suggestions.js b/resources/src/jquery/jquery.suggestions.js index 4f4edc96b5..39c601f3a3 100644 --- a/resources/src/jquery/jquery.suggestions.js +++ b/resources/src/jquery/jquery.suggestions.js @@ -293,7 +293,7 @@ expandFrom = 'left'; // Catch invalid values, default to 'auto' - } else if ( $.inArray( expandFrom, [ 'left', 'right', 'start', 'end', 'auto' ] ) === -1 ) { + } else if ( [ 'left', 'right', 'start', 'end', 'auto' ].indexOf( expandFrom ) === -1 ) { expandFrom = 'auto'; } @@ -757,7 +757,7 @@ ]; if ( context.data.keypressedCount === 0 && e.which === context.data.keypressed && - $.inArray( e.which, allowed ) !== -1 + allowed.indexOf( e.which ) !== -1 ) { $.suggestions.keypress( e, context, context.data.keypressed ); }