summaryrefslogtreecommitdiffstats
path: root/install/ui/aci.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-06-16 15:37:27 -0400
committerEndi S. Dewata <edewata@redhat.com>2011-06-16 20:29:14 +0000
commitdbeae4e3f43a15c84d95447c0c38266f06402ea2 (patch)
tree791d53fa22e046f32d1726b6f6f5e4ecbc4a53df /install/ui/aci.js
parentc03fab1095c4044ffb21b2b9962502886e6421b2 (diff)
downloadfreeipa-dbeae4e3f43a15c84d95447c0c38266f06402ea2.tar.gz
freeipa-dbeae4e3f43a15c84d95447c0c38266f06402ea2.tar.xz
freeipa-dbeae4e3f43a15c84d95447c0c38266f06402ea2.zip
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
Diffstat (limited to 'install/ui/aci.js')
-rw-r--r--install/ui/aci.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/install/ui/aci.js b/install/ui/aci.js
index 70fe6d925..077cbebdc 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($('<th/>', {
@@ -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 = $('<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());
}
}));