From 7be127512bebee75e14fc760edb90b86fadd9b45 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Mon, 7 Feb 2011 13:12:30 -0600 Subject: Read-only text widget's save() should return null. --- install/ui/widget.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'install') diff --git a/install/ui/widget.js b/install/ui/widget.js index beb09a9d..eb2f70cf 100644 --- a/install/ui/widget.js +++ b/install/ui/widget.js @@ -352,7 +352,8 @@ IPA.text_widget = function(spec) { that.save = function() { if (that.read_only || !that.writable) { - return that.values; + return null; + } else { var input = $('input[name="'+that.name+'"]', that.container); var value = $.trim(input.val()); -- cgit