Show More
@@ -46,6 +46,9 require(["notebook/js/widget"], function(){ | |||||
46 | this.$textbox.val(this.model.get('value')); |
|
46 | this.$textbox.val(this.model.get('value')); | |
47 | } |
|
47 | } | |
48 |
|
48 | |||
|
49 | var disabled = this.model.get('disabled'); | |||
|
50 | this.$textbox.prop('disabled', disabled); | |||
|
51 | ||||
49 | var description = this.model.get('description'); |
|
52 | var description = this.model.get('description'); | |
50 | if (description.length == 0) { |
|
53 | if (description.length == 0) { | |
51 | this.$label.hide(); |
|
54 | this.$label.hide(); | |
@@ -96,6 +99,9 require(["notebook/js/widget"], function(){ | |||||
96 | this.$textbox.val(this.model.get('value')); |
|
99 | this.$textbox.val(this.model.get('value')); | |
97 | } |
|
100 | } | |
98 |
|
101 | |||
|
102 | var disabled = this.model.get('disabled'); | |||
|
103 | this.$textbox.prop('disabled', disabled); | |||
|
104 | ||||
99 | var description = this.model.get('description'); |
|
105 | var description = this.model.get('description'); | |
100 | if (description.length == 0) { |
|
106 | if (description.length == 0) { | |
101 | this.$label.hide(); |
|
107 | this.$label.hide(); |
General Comments 0
You need to be logged in to leave comments.
Login now