summaryrefslogtreecommitdiffstats
path: root/NetworkDiscovery/html/js/nd-functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'NetworkDiscovery/html/js/nd-functions.js')
-rw-r--r--NetworkDiscovery/html/js/nd-functions.js73
1 files changed, 0 insertions, 73 deletions
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 = "<label> Choose your interface: </label>"+
- "<select>"+
- " <option>eth0</option>"+ //should look like this: " <option>"+ +"</option>"+
- " <option>eth1</option>"+
- " <option>eth2</option>"+
- "</select>";
- $("#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(
- "<div class='interface'>"+
- " Interface: " +i+
- " <span id='"+i+"_status'>Start DHCP </span>" +
- " <div id='"+i+"_progress' class='progressbar' "+
- " style='height: 10px;'></div>"+
- "</div>"
- );
- $("#"+i+"_progress").progressbar({ value: 33 });
-};
-
-