Skip to content

Commit

Permalink
Merge pull request #1 from hranicka/master
Browse files Browse the repository at this point in the history
Preserve checkbox title attribute [Closes minhur#46]
  • Loading branch information
landy2005 authored Mar 7, 2019
2 parents b76c094 + 26afdd6 commit c7e911b
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 c7e911b

Please sign in to comment.