Skip to content

Commit 8ee3e04

Browse files
committed
Add cursor style on disabled #2.
1 parent d36f932 commit 8ee3e04

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# [Bootstrap-checkbox](http://vsn4ik.github.io/bootstrap-checkbox)
2+
23
[![Bower version](https://badge.fury.io/bo/bootstrap-checkbox.svg)](http://badge.fury.io/bo/bootstrap-checkbox)
34

45
## Getting Started

dist/bootstrap-checkbox.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ if (typeof jQuery === 'undefined') {
1515
(function($) {
1616
var Checkboxpicker = function(element, options) {
1717
this.element = element;
18-
this.$element = $(element).hide();
18+
19+
// Change .prop('hidden', true) -> .hide() in future
20+
this.$element = $(element).prop('hidden', true);
1921

2022
this.options = $.extend({}, $.fn.checkboxpicker.defaults, options, this.$element.data());
2123

@@ -63,6 +65,7 @@ if (typeof jQuery === 'undefined') {
6365

6466
if (this.element.disabled) {
6567
this.$buttons.addClass('disabled');
68+
this.$group.css('cursor', 'not-allowed');
6669
}
6770
else {
6871
this.$element.change(this.toggle.bind(this));

dist/bootstrap-checkbox.min.js

Lines changed: 5 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)