Commit 739629ed authored by Chris Hynes's avatar Chris Hynes

Made refresh() update disabled state

parent e488aab0
...@@ -323,6 +323,13 @@ ...@@ -323,6 +323,13 @@
$input.parents('li').removeClass(this.options.selectedClass); $input.parents('li').removeClass(this.options.selectedClass);
} }
} }
if ($(element).is(":disabled")) {
input.attr('disabled', 'disabled').prop('disabled', true).parents('li').addClass('disabled');
}
else {
input.removeAttr('disabled').prop('disabled', false).parents('li').removeClass('disabled');
}
}, this)); }, this));
this.updateButtonText(); this.updateButtonText();
......
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