search widget : widget search history draft

SVN:b1162[5550]
This commit is contained in:
Bruno Da Silva
2018-03-27 16:09:21 +00:00
parent 7bccfef3bd
commit 7868a38137

View File

@@ -46,9 +46,8 @@ $(function()
{ {
var me = this; var me = this;
var iIndexInHistory = me.aHistory.indexOf(sFieldRef);
//if present, delete //if present, delete
var iIndexInHistory = me.aHistory.indexOf(sFieldRef);
if (iIndexInHistory > -1) if (iIndexInHistory > -1)
{ {
me.aHistory.splice(iIndexInHistory, 1); me.aHistory.splice(iIndexInHistory, 1);
@@ -64,6 +63,7 @@ $(function()
me.aHistory.splice(0, iDeleteCount); me.aHistory.splice(0, iDeleteCount);
} }
//store it in the backend (with a delay in the hope to wait long enough to make bulk modifications
me._storeHistory(); me._storeHistory();
//setter should never return a value! //setter should never return a value!