Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inherit title attribute from original checkbox #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/bootstrap-checkbox.js
Expand Up @@ -82,7 +82,7 @@
labelPrepend = this.$element.data('label-prepend') ? '<span class="label-prepend-checkbox">'+this.$element.data('label-prepend')+'</span>' : '';

var template =
'<span class="button-checkbox bootstrap-checkbox">' +
'<span class="button-checkbox bootstrap-checkbox"' + (typeof this.$element.attr('title') !== 'undefined' ? ' title="' + this.$element.attr('title') + '"' : '') + '>' +
'<button type="button" class="btn clearfix'+additionalButtonStyle+'">' +
((this.$element.data('label-prepend') && this.options.displayAsButton) ? labelPrepend : '')+
'<span class="icon '+this.options.checkedClass+'" style="display:none;"></span>' +
Expand Down