diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-05-26 17:57:39 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-05-27 13:06:57 -0400 |
commit | aa29a8a769c62b07cc4e6d82fc79846505cc9fa3 (patch) | |
tree | 2131098b113c2bfecf1830feff0c08b3b2d1aabc /install/ui/entity.js | |
parent | 17c3f9e84efcbeb3b5ae1de83d799974de3bb078 (diff) | |
download | freeipa-aa29a8a769c62b07cc4e6d82fc79846505cc9fa3.tar.gz freeipa-aa29a8a769c62b07cc4e6d82fc79846505cc9fa3.tar.xz freeipa-aa29a8a769c62b07cc4e6d82fc79846505cc9fa3.zip |
Added Update and Reset buttons into Dirty dialog.
The Dirty dialogs have been combined into IPA.dirty_dialog. It
provides the Update and Reset buttons with customizable callback.
Previously the widget's dirty status is computed by comparing the
old values with the new values. This method is sometimes inaccurate,
so the is_dirty() method has been modified to simply return a flag
which is set to true if the widget is changed.
Ticket #896.
Diffstat (limited to 'install/ui/entity.js')
-rw-r--r-- | install/ui/entity.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/install/ui/entity.js b/install/ui/entity.js index c855da1b5..4b6ce1d0e 100644 --- a/install/ui/entity.js +++ b/install/ui/entity.js @@ -122,7 +122,7 @@ IPA.facet = function (spec) { that.load = function() { }; - that.is_dirty = function (){ + that.is_dirty = function() { return false; }; @@ -536,10 +536,7 @@ IPA.entity_header = function(spec) { } var pkey = $.bbq.getState(that.entity.name+'-pkey'); - IPA.nav.show_page(that.entity.name, other_facet.name, pkey); - $('a', that.facet_tabs).removeClass('selected'); - $('a', li).addClass('selected'); return false; } |