Commit e2bab6e0 authored by Joao Jose Pedrini's avatar Joao Jose Pedrini

adding disabled option support

parent a5120e3f
...@@ -92,7 +92,9 @@ ...@@ -92,7 +92,9 @@
var selected = $(element).prop('selected') || false; var selected = $(element).prop('selected') || false;
var checkbox = $('ul li input[value="' + $(element).val() + '"]', this.container); var checkbox = $('ul li input[value="' + $(element).val() + '"]', this.container);
if ($(element).is(':disabled')) {
checkbox.attr('disabled', 'disabled').prop('disabled','disabled').parents('li').addClass('disabled')
}
checkbox.prop('checked', selected); checkbox.prop('checked', selected);
if (selected) { if (selected) {
...@@ -212,4 +214,4 @@ ...@@ -212,4 +214,4 @@
} }
}); });
} }
}(window.jQuery); }(window.jQuery);
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