Skip to content

Commit

Permalink
Merge pull request #134 from wiserstudios/master
Browse files Browse the repository at this point in the history
Add disabled class on container for when the combobox is disabled
  • Loading branch information
thephw committed May 14, 2014
2 parents fae53c7 + 0c64a2f commit 1439778
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions js/bootstrap-combobox.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,17 @@
}

, disable: function() {
this.$element.prop('disabled', true)
this.$button.attr('disabled', true)
this.disabled = true
this.$element.prop('disabled', true);
this.$button.attr('disabled', true);
this.disabled = true;
this.$container.addClass('combobox-disabled');
}

, enable: function() {
this.$element.prop('disabled', false)
this.$button.attr('disabled', false)
this.disabled = false
this.$element.prop('disabled', false);
this.$button.attr('disabled', false);
this.disabled = false;
this.$container.removeClass('combobox-disabled');
}
, parse: function () {
var that = this
Expand Down

0 comments on commit 1439778

Please sign in to comment.