diff options
author | Adam Young <ayoung@redhat.com> | 2011-01-26 20:58:06 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-01-27 16:59:17 -0500 |
commit | d7f4d616df836f2f8590c8fd82ab165bd2f97cd5 (patch) | |
tree | 3f9fd542332e0a611d685c1b37898e966b4c5ba3 /install/ui/entity.js | |
parent | 7462a852bd7f17c5525cf5b912df2932bc55e19e (diff) | |
download | freeipa-d7f4d616df836f2f8590c8fd82ab165bd2f97cd5.tar.gz freeipa-d7f4d616df836f2f8590c8fd82ab165bd2f97cd5.tar.xz freeipa-d7f4d616df836f2f8590c8fd82ab165bd2f97cd5.zip |
dirty
If a page is dirty, do not allow additional navigation until changes are saved or committed
https://fedorahosted.org/freeipa/ticket/726
Diffstat (limited to 'install/ui/entity.js')
-rw-r--r-- | install/ui/entity.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/install/ui/entity.js b/install/ui/entity.js index 8d39b8e79..990d2eb74 100644 --- a/install/ui/entity.js +++ b/install/ui/entity.js @@ -63,6 +63,10 @@ IPA.facet = function (spec) { function load() { } + that.is_dirty = function (){ + return false; + } + that.get_client_area = function() { return $('.client', that.container); }; @@ -371,6 +375,7 @@ IPA.entity_setup = function (container) { var entity = this; + IPA.current_entity = this; var facet_name = IPA.current_facet(entity); @@ -379,8 +384,7 @@ IPA.entity_setup = function (container) { if (IPA.entity_name == entity.name) { if (entity.facet_name == facet_name) { - if (!facet.is_dirty()) return; - + if (facet.new_key && (!facet.new_key())) return; } else { entity.facet_name = facet_name; } |