Advanced search: UI/UX, WIP.

SVN:b1162[5606]
This commit is contained in:
Guillaume Lajarige
2018-04-04 13:32:20 +00:00
parent da5a8b0fd1
commit 2bb6acfa22

View File

@@ -640,14 +640,14 @@ $(function()
oSelectedValuesElem.hide();
}
// Reorder
oSelectedValuesElem.html('');
var aSortedValues = this._sortValuesByLabel(this.options.values);
for(var iIdx in aSortedValues)
{
var oItemElem = this._makeListItemElement(aSortedValues[iIdx][1], aSortedValues[iIdx][0], true);
oItemElem.appendTo(oSelectedValuesElem);
}
// TODO: Reorder
// oSelectedValuesElem.html('');
// var aSortedValues = this._sortValuesByLabel(this.options.values);
// for(var iIdx in aSortedValues)
// {
// var oItemElem = this._makeListItemElement(aSortedValues[iIdx][1], aSortedValues[iIdx][0], true);
// oItemElem.appendTo(oSelectedValuesElem);
// }
},
// - Return an array of allowed values sorted by labels
_sortValuesByLabel: function(oSource)