diff --git a/IPython/html/static/notebook/js/widgets/string.js b/IPython/html/static/notebook/js/widgets/string.js index 02395a8..8f6e1a7 100644 --- a/IPython/html/static/notebook/js/widgets/string.js +++ b/IPython/html/static/notebook/js/widgets/string.js @@ -46,6 +46,9 @@ require(["notebook/js/widget"], function(){ this.$textbox.val(this.model.get('value')); } + var disabled = this.model.get('disabled'); + this.$textbox.prop('disabled', disabled); + var description = this.model.get('description'); if (description.length == 0) { this.$label.hide(); @@ -96,6 +99,9 @@ require(["notebook/js/widget"], function(){ this.$textbox.val(this.model.get('value')); } + var disabled = this.model.get('disabled'); + this.$textbox.prop('disabled', disabled); + var description = this.model.get('description'); if (description.length == 0) { this.$label.hide();