Skip to content

Commit

Permalink
Preserve checkbox title attribute [Closes minhur#46]
Browse files Browse the repository at this point in the history
  • Loading branch information
hranicka committed Jun 10, 2015
1 parent 7900336 commit 26afdd6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions js/bootstrap-toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
var $toggle = $('<div class="toggle btn" data-toggle="toggle">')
.addClass( this.$element.prop('checked') ? this._onstyle : this._offstyle+' off' )
.addClass(size).addClass(this.options.style)
.attr('title', this.$element.prop('title'))

this.$element.wrap($toggle)
$.extend(this, {
Expand Down
2 changes: 1 addition & 1 deletion js/bootstrap-toggle.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/bootstrap-toggle.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 26afdd6

Please sign in to comment.