From 2b446698ea1fef0094f1123d9f216890d6ec8782 Mon Sep 17 00:00:00 2001 From: Niklas Date: Fri, 7 Oct 2011 14:25:57 +0200 Subject: renamed nd-functions into networkDiscovery.js --- NetworkDiscovery/html/js/nd-functions.js | 73 -------------------------------- 1 file changed, 73 deletions(-) delete mode 100644 NetworkDiscovery/html/js/nd-functions.js (limited to 'NetworkDiscovery/html/js/nd-functions.js') diff --git a/NetworkDiscovery/html/js/nd-functions.js b/NetworkDiscovery/html/js/nd-functions.js deleted file mode 100644 index e3ee793..0000000 --- a/NetworkDiscovery/html/js/nd-functions.js +++ /dev/null @@ -1,73 +0,0 @@ -var abortBootDialog = function (m) { - $("#nd_abort_boot_msg").html(m); - $("#nd_abort_boot_dialog").dialog( - { buttons: { "Show Log": function() {fbgui.showLog(); - $(this).dialog("close");}, - "Restart": function() {fbgui.restartSystem(); - $(this).dialog("close"); }, - "Shut Down": function() { fbgui.shutDownSystem(); - $(this).dialog("close"); } - } , - minWidth: 450, - modal: true, - resizable: false, - draggable: false, - open: function(event, ui) { $(".ui-dialog-titlebar-close").hide();} - }); -}; - -var chooseInterfaceDialog = function (i) { - var cb = ""+ - ""; - $("#nd_choose_interface_msg").html(cb); - $("#nd_choose_interface_dialog").dialog( - { buttons: { "Show Log": function() {fbgui.showLog(); - $(this).dialog("close");}, - "Restart": function() {fbgui.restartSystem(); - $(this).dialog("close"); }, - "Shut Down": function() { fbgui.shutDownSystem(); - $(this).dialog("close"); }, - "Continue": function() { fbgui.continueBoot(); - $(this).dialog("close"); } - } , - minWidth: 550, - modal: true, - resizable: false, - draggable: false, - open: function(event, ui) { $(".ui-dialog-titlebar-close").hide();} - }); -} - -var updateStatus = function (s){ - -}; - -var updateIfProgressBar = function (i, p){ - if (p >= 0 && p <= 100){ - $("#"+i+"_progress").progressbar({ value: p }); - }else{ - $("#"+i+"_progress").progressbar({ value: 0 }); - } -}; - -var updateIfStatus = function(i, s){ - $("#"+i+"_status").html(s); -}; - -var addInterface = function (i){ - $("#nd_progress_container").append( - "
"+ - " Interface: " +i+ - " Start DHCP " + - "
"+ - "
" - ); - $("#"+i+"_progress").progressbar({ value: 33 }); -}; - - -- cgit v1.2.3-55-g7522