Commit ceac8764 authored by Tyf0x's avatar Tyf0x

** Updated the clearSelection method to use deselectall() **

parent 872c3abe
...@@ -735,20 +735,9 @@ ...@@ -735,20 +735,9 @@
* *
*/ */
clearSelection: function () { clearSelection: function () {
this.deselectall(false);
var selected = this.getSelected(); this.updateButtonText();
this.updateSelectAll();
if (selected.length) {
var arry = [];
for (var i = 0; i < selected.length; i = i + 1) {
arry.push(selected[i].value);
}
this.deselect(arry);
this.$select.change();
}
}, },
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment