From 1b43fb0532be3ad674fbc07e74c6691eaa8e66e4 2014-01-16 10:56:02 From: Jonathan Frederic Date: 2014-01-16 10:56:02 Subject: [PATCH] Made TextArea and TextBox views compatable with disabled property --- 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();