summaryrefslogtreecommitdiffstats
path: root/install/ui
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-02-07 13:12:30 -0600
committerEndi S. Dewata <edewata@redhat.com>2011-02-07 15:31:42 -0500
commit7be127512bebee75e14fc760edb90b86fadd9b45 (patch)
tree0120d410c70de3dfaf5190c961a4d973e0825ef0 /install/ui
parent9b73da1d540db59db9c616e0fc3e7018d1d5e273 (diff)
downloadfreeipa-7be127512bebee75e14fc760edb90b86fadd9b45.tar.gz
freeipa-7be127512bebee75e14fc760edb90b86fadd9b45.tar.xz
freeipa-7be127512bebee75e14fc760edb90b86fadd9b45.zip
Read-only text widget's save() should return null.
Diffstat (limited to 'install/ui')
-rw-r--r--install/ui/widget.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/install/ui/widget.js b/install/ui/widget.js
index beb09a9d4..eb2f70cfc 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());