Pushed under one-liner rule. -- Endi S. Dewata
From 2d84ab075cb418139afe0697de67eea82eecc15a Mon Sep 17 00:00:00 2001 From: Endi S. Dewata <edew...@redhat.com> Date: Mon, 7 Feb 2011 13:12:30 -0600 Subject: [PATCH] Read-only text widget's save() should return null. --- install/ui/widget.js | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/install/ui/widget.js b/install/ui/widget.js index beb09a9d4511929a5dfe32da199b975466ef7525..eb2f70cfc0407d36fa6dd04ef7a4e9acb2f82853 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()); -- 1.6.6.1
_______________________________________________ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel