From d7f4d616df836f2f8590c8fd82ab165bd2f97cd5 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Wed, 26 Jan 2011 20:58:06 -0500 Subject: dirty If a page is dirty, do not allow additional navigation until changes are saved or committed https://fedorahosted.org/freeipa/ticket/726 --- install/ui/webui.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'install/ui/webui.js') diff --git a/install/ui/webui.js b/install/ui/webui.js index 9459c9d1..a762654b 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!'); -} -- cgit