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

adding disabled option support

parent a5120e3f
......@@ -92,7 +92,9 @@
var selected = $(element).prop('selected') || false;
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);
if (selected) {
......
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