Skip to content

Commit

Permalink
Added refresh method
Browse files Browse the repository at this point in the history
Added "refresh" method for resync with the chekbox
  • Loading branch information
Roberto committed Feb 5, 2014
1 parent de73313 commit 0c590f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/bootstrap-checkbox.js
Expand Up @@ -223,6 +223,11 @@
toggleEnabled: function(event){
this.$element.attr('disabled', !this.$element.is(':disabled'));
this.checkEnabled();
},

refresh: function(event){
this.checkEnabled();
this.checkChecked();
}

};
Expand Down

0 comments on commit 0c590f2

Please sign in to comment.