From d9c17612341af82405873dde120b177dbc0abd83 Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Tue, 29 Mar 2011 13:24:06 +0200 Subject: Remove unwanted trimming in text fields UI trims whitespace at the beginning or at the end when user data are being saved. This confuses is_dirty function which incorrectly recognizes given field as modified. This patch fixes this issue for both general text fields and ACI filter field. https://fedorahosted.org/freeipa/ticket/1096 --- install/ui/aci.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install/ui/aci.js') diff --git a/install/ui/aci.js b/install/ui/aci.js index e7e0c563..55d514cf 100644 --- a/install/ui/aci.js +++ b/install/ui/aci.js @@ -422,7 +422,7 @@ IPA.target_section = function(spec) { that.filter_text.save = function(){ var input = $('input[name="'+that.filter_text.name+'"]', that.filter_text.container); - var value = $.trim(input.val()); + var value = input.val(); return value === '' ? [] : [value]; }; -- cgit