From dbeae4e3f43a15c84d95447c0c38266f06402ea2 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Thu, 16 Jun 2011 15:37:27 -0400 Subject: test dirty onchange instead of blindly setting dirty, check if the filed has a different value than it originally did. https://fedorahosted.org/freeipa/ticket/1337 --- install/ui/aci.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'install/ui/aci.js') diff --git a/install/ui/aci.js b/install/ui/aci.js index 70fe6d92..077cbebd 100644 --- a/install/ui/aci.js +++ b/install/ui/aci.js @@ -234,7 +234,7 @@ IPA.attributes_widget = function(spec) { click: function(){ $('.aci-attribute', that.table). attr('checked', $(this).attr('checked')); - that.set_dirty(true); + that.set_dirty(that.test_dirty()); } }) })).append($('', { @@ -298,7 +298,7 @@ IPA.attributes_widget = function(spec) { value: value, 'class': 'aci-attribute', click: function() { - that.set_dirty(true); + that.set_dirty(that.test_dirty()); } })); td = $('').appendTo(aci_tr); @@ -335,7 +335,7 @@ IPA.attributes_widget = function(spec) { value: value, 'class': 'aci-attribute', change: function() { - that.set_dirty(true); + that.set_dirty(that.test_dirty()); } })); -- cgit