From 9f3450448e6ca7a46a9037c8f0741f2743e14ab9 Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Wed, 30 Oct 2013 22:38:23 +0000 Subject: [PATCH] Made TextArea and TextBox views compatable with disabled property --- IPython/html/static/notebook/js/widgets/string.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/IPython/html/static/notebook/js/widgets/string.js b/IPython/html/static/notebook/js/widgets/string.js index 02395a85f..8f6e1a768 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();