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/navigation.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/navigation.js')
-rw-r--r-- | install/ui/navigation.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/install/ui/navigation.js b/install/ui/navigation.js index 0b8fe528e..4a3fe6916 100644 --- a/install/ui/navigation.js +++ b/install/ui/navigation.js @@ -23,9 +23,15 @@ var nav_tabs_lists; var nav_container; + + function nav_push_state(params) { + if (!IPA.test_dirty()){ + return false; + } $.bbq.pushState(params); + return true; } function nav_get_state(key) @@ -58,8 +64,7 @@ function nav_create(nls, container, tabclass) var id = parent.attr('id'); var state = {}; state[id] = ui.index; - nav_push_state(state); - return true; + return nav_push_state(state); } }); |