essage=corrected my mistake when comparing if textbox length is empty, or not.
authorThomas Gries <wikinaut@users.mediawiki.org>
Mon, 13 Jun 2011 09:56:54 +0000 (09:56 +0000)
committerThomas Gries <wikinaut@users.mediawiki.org>
Mon, 13 Jun 2011 09:56:54 +0000 (09:56 +0000)
resources/jquery/jquery.suggestions.js

index 8b0da23..4c23b19 100644 (file)
@@ -82,7 +82,7 @@ $.suggestions = {
                }
 
                // clear result div if the value in the textbox is empty
-               if ( context.data.$textbox.val().length != 0 ) {
+               if ( context.data.$textbox.val().length == 0 ) {
                        context.data.$container.hide();
                }