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/widget.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'install/ui/widget.js') diff --git a/install/ui/widget.js b/install/ui/widget.js index 14a40a57..80906a2f 100644 --- a/install/ui/widget.js +++ b/install/ui/widget.js @@ -728,7 +728,7 @@ IPA.checkbox_widget = function (spec) { var input = $('input[name="'+that.name+'"]', that.container); input.change(function() { - that.set_dirty(true); + that.set_dirty(that.test_dirty()); }); var undo = that.get_undo(); @@ -802,7 +802,7 @@ IPA.checkboxes_widget = function (spec) { var input = $('input[name="'+that.name+'"]', that.container); input.change(function() { - that.set_dirty(true); + that.set_dirty(that.test_dirty()); }); var undo = that.get_undo(); @@ -880,7 +880,7 @@ IPA.radio_widget = function(spec) { var input = $('input[name="'+that.name+'"]', that.container); input.change(function() { - that.set_dirty(true); + that.set_dirty(that.test_dirty()); }); var undo = that.get_undo(); @@ -957,7 +957,7 @@ IPA.select_widget = function(spec) { that.select = $('select[name="'+that.name+'"]', that.container); that.select.change(function() { - that.set_dirty(true); + that.set_dirty(that.test_dirty()); }); var undo = that.get_undo(); @@ -1575,7 +1575,7 @@ IPA.entity_select_widget = function(spec) { that.entity_select = $('