Commit f812c3e2 authored by David Stutz's avatar David Stutz

Merge pull request #587 from Nithyaduruvan/patch-1

deselectAll should do so in singleselect as well.
parents 8f69ae16 28e504fe
......@@ -1171,7 +1171,7 @@
var justVisible = typeof justVisible === 'undefined' ? true : justVisible;
if(justVisible) {
var visibleCheckboxes = $("li input[type='checkbox']:not(:disabled)", this.$ul).filter(":visible");
var visibleCheckboxes = $("li input:not(:disabled)", this.$ul).filter(":visible");
visibleCheckboxes.prop('checked', false);
var values = visibleCheckboxes.map(function() {
......@@ -1187,7 +1187,7 @@
}
}
else {
$("li input[type='checkbox']:enabled", this.$ul).prop('checked', false);
$("li input:enabled", this.$ul).prop('checked', false);
$("option:enabled", this.$select).prop('selected', false);
if (this.options.selectedClass) {
......
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