mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Advanced search: Fix IE9 bug when trying to add a criteria.
SVN:trunk[5702]
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user