resinserted context.data.prevText = context.data..val(); which was accidentially...
authorThomas Gries <wikinaut@users.mediawiki.org>
Mon, 13 Jun 2011 11:32:04 +0000 (11:32 +0000)
committerThomas Gries <wikinaut@users.mediawiki.org>
Mon, 13 Jun 2011 11:32:04 +0000 (11:32 +0000)
resources/jquery/jquery.suggestions.js

index 12f2656..d3f294f 100644 (file)
@@ -79,6 +79,7 @@ $.suggestions = {
                                context.data.prevText = '';
                        } else if ( context.data.$textbox.val() !== context.data.prevText ) {
                                if ( typeof context.config.fetch == 'function' ) {
+                                       context.data.prevText = context.data.$textbox.val();
                                        context.config.fetch.call( context.data.$textbox, context.data.$textbox.val() );
                                }
                        }