jquery.suggestions: Only highlight prefix matches
[lhc/web/wiklou.git] / resources / src / jquery / jquery.suggestions.js
index f3e4e09..8c1739c 100644 (file)
                                                                }
 
                                                                if ( context.config.highlightInput ) {
-                                                                       $result.highlightText( context.data.prevText );
+                                                                       $result.highlightText( context.data.prevText, { method: 'prefixHighlight' } );
                                                                }
 
                                                                // Widen results box if needed (new width is only calculated here, applied later).