The search still yields quite a few requests, but this is fine considering that it is (a) limited to the admin panel and (b) having faster results is a worthy trade off.
* @see WCF.Search.Base
*/
WCF.ACP.Search = WCF.Search.Base.extend({
+ _delay: 250,
+
/**
* name of the selected search provider
* @var string
*/
_itemIndex: -1,
+ /**
+ * @var string
+ */
+ _lastValue: '',
+
/**
* result list
* @var jQuery
this._caretAt = -1;
this._delay = 0;
this._excludedSearchValues = [];
+ this._lastValue = '';
if (excludedSearchValues) {
this._excludedSearchValues = excludedSearchValues;
}
this._clearList(false);
}
else if ($content.length >= this._triggerLength) {
+ if (this._lastValue === $content) {
+ return;
+ }
+
+ this._lastValue = $content;
+
var $parameters = {
data: {
excludedSearchValues: this._excludedSearchValues,