From 9a3749c1ed039a70bcaa2bb5c8c0ea863f1762ae Mon Sep 17 00:00:00 2001 From: Guillaume Lajarige Date: Fri, 20 Apr 2018 09:50:13 +0000 Subject: [PATCH] Advanced search: Fix IE9 bug when trying to add a criteria. SVN:trunk[5702] --- js/search/search_form_handler_history.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/search/search_form_handler_history.js b/js/search/search_form_handler_history.js index 287901638..993b82ac5 100644 --- a/js/search/search_form_handler_history.js +++ b/js/search/search_form_handler_history.js @@ -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; } });