https://bugzilla.wikimedia.org/show_bug.cgi?id=29368
Web browser: ---
Bug #: 29368
Summary: jQuery.suggestions.js should skip ajax api calls for
empty query strings
Product: MediaWiki
Version: 1.19-svn
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Javascript
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
during tracking another problem in Vector/modules/ext.vector.simpleSearch.js ,
I found that jQuery.suggestions.js should be improved.
It currently does not send ajax requests if the current input equals the
previous one (this is perfect).
if ( context.data.$textbox.val() !== context.data.prevText )
But it should skip (i.e. not send) requests, if the input is empty:
context.data.$textbox.val().length == 0
Regards at least "fetch" and "update" in this module.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l