summaryrefslogtreecommitdiffstats
path: root/install/ui/webui.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-01-26 20:58:06 -0500
committerAdam Young <ayoung@redhat.com>2011-01-27 16:59:17 -0500
commitd7f4d616df836f2f8590c8fd82ab165bd2f97cd5 (patch)
tree3f9fd542332e0a611d685c1b37898e966b4c5ba3 /install/ui/webui.js
parent7462a852bd7f17c5525cf5b912df2932bc55e19e (diff)
downloadfreeipa-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/webui.js')
-rw-r--r--install/ui/webui.js16
1 files changed, 6 insertions, 10 deletions
diff --git a/install/ui/webui.js b/install/ui/webui.js
index 9459c9d1c..a762654b0 100644
--- a/install/ui/webui.js
+++ b/install/ui/webui.js
@@ -116,6 +116,12 @@ IPA.tab_state = function(entity_name){
/* main (document onready event handler) */
$(function() {
+ /* main loop (hashchange event handler) */
+ function window_hashchange(evt){
+ nav_update_tabs();
+ }
+
+
function should_show_all_ui(){
var whoami = IPA.whoami;
@@ -167,13 +173,3 @@ $(function() {
IPA.init(null, null, init_on_win, init_on_error);
});
-
-/* main loop (hashchange event handler) */
-function window_hashchange(evt){
- nav_update_tabs();
-}
-
-/* builder function for unimplemented tab content */
-function unimplemented_tab(jobj){
- jobj.text('Not implemented yet!');
-}