Show More
@@ -34,6 +34,9 b' require(["notebook/js/widget"], function(){' | |||||
34 | if (!this.user_invoked_update) { |
|
34 | if (!this.user_invoked_update) { | |
35 | this.$checkbox.prop('checked', this.model.get('value')); |
|
35 | this.$checkbox.prop('checked', this.model.get('value')); | |
36 |
|
36 | |||
|
37 | var disabled = this.model.get('disabled'); | |||
|
38 | this.$checkbox.prop('disabled', disabled); | |||
|
39 | ||||
37 | var description = this.model.get('description'); |
|
40 | var description = this.model.get('description'); | |
38 | if (description.length == 0) { |
|
41 | if (description.length == 0) { | |
39 | this.$label.hide(); |
|
42 | this.$label.hide(); | |
@@ -75,6 +78,9 b' require(["notebook/js/widget"], function(){' | |||||
75 | this.$button.removeClass('active'); |
|
78 | this.$button.removeClass('active'); | |
76 | } |
|
79 | } | |
77 |
|
80 | |||
|
81 | var disabled = this.model.get('disabled'); | |||
|
82 | this.$button.prop('disabled', disabled); | |||
|
83 | ||||
78 | var description = this.model.get('description'); |
|
84 | var description = this.model.get('description'); | |
79 | if (description.length == 0) { |
|
85 | if (description.length == 0) { | |
80 | this.$button.html(' '); // Preserve button height |
|
86 | this.$button.html(' '); // Preserve button height |
General Comments 0
You need to be logged in to leave comments.
Login now