Advanced search: Fix IE9 bug when trying to add a criteria.

SVN:trunk[5702]
This commit is contained in:
Guillaume Lajarige
2018-04-20 09:50:13 +00:00
parent d82b755557
commit 9a3749c1ed

View File

@@ -109,23 +109,23 @@ $(function()
{
var me = this;
if (undefined != me.iStoreHistoryTimeoutHandler)
if (undefined != this.iStoreHistoryTimeoutHandler)
{
clearTimeout(me.iStoreHistoryTimeoutHandler);
clearTimeout(this.iStoreHistoryTimeoutHandler);
}
me.iStoreHistoryTimeoutHandler = setTimeout(me._storeHistoryTimeoutFunction(me), me.options.history_backend_store_timeout);
this.iStoreHistoryTimeoutHandler = setTimeout(function(){ me._storeHistoryTimeoutFunction(); }, this.options.history_backend_store_timeout);
},
/**
* should only be called by _storeHistory using a timeout
* @private
*/
_storeHistoryTimeoutFunction: function(me)
_storeHistoryTimeoutFunction: function()
{
SetUserPreference(me._getPreferenceCode(), JSON.stringify(me.getHistory()), true);
SetUserPreference(this._getPreferenceCode(), JSON.stringify(this.getHistory()), true);
me.iStoreHistoryTimeoutHandler = undefined;
this.iStoreHistoryTimeoutHandler = undefined;
}
});