From: m4tx Date: Fri, 2 Jan 2015 01:26:26 +0000 (+0100) Subject: Don't replace user text with suggestion in searchbox X-Git-Tag: 1.31.0-rc.0~12820^2 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=3090acb68b05a3e029dad5fd50c6956858327934;p=lhc%2Fweb%2Fwiklou.git Don't replace user text with suggestion in searchbox On Enter press, there was highlight() called, which also replaced the text. Since it seems to have no use here (highlight() highlights the selected suggestion in the box, but the box is immediately hidden, and there's probably no case when the suggestion is chosen, but the text in searchbox does not match it), it was removed. Bug: T53900 Change-Id: I9fc2e954ae429ba166ddc7c713f9790a25a837c2 --- diff --git a/resources/src/jquery/jquery.suggestions.js b/resources/src/jquery/jquery.suggestions.js index 3369cde296..a83a70aa6b 100644 --- a/resources/src/jquery/jquery.suggestions.js +++ b/resources/src/jquery/jquery.suggestions.js @@ -474,8 +474,6 @@ $.suggestions = { } } } else { - $.suggestions.highlight( context, selected, true ); - if ( typeof context.config.result.select === 'function' ) { // Allow the callback to decide whether to prevent default or not if ( context.config.result.select.call( selected, context.data.$textbox ) === true ) {