summaryrefslogtreecommitdiffstats
path: root/LogReceiver/html/js/nd-functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'LogReceiver/html/js/nd-functions.js')
-rw-r--r--LogReceiver/html/js/nd-functions.js50
1 files changed, 46 insertions, 4 deletions
diff --git a/LogReceiver/html/js/nd-functions.js b/LogReceiver/html/js/nd-functions.js
index ac8f273..e3ee793 100644
--- a/LogReceiver/html/js/nd-functions.js
+++ b/LogReceiver/html/js/nd-functions.js
@@ -1,9 +1,52 @@
+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){
- fbgui.notifyCall();
+var updateIfProgressBar = function (i, p){
if (p >= 0 && p <= 100){
$("#"+i+"_progress").progressbar({ value: p });
}else{
@@ -12,11 +55,10 @@ var updateIfProgressBar = function (i, p){
};
var updateIfStatus = function(i, s){
-
+ $("#"+i+"_status").html(s);
};
var addInterface = function (i){
- fbgui.notifyCall();
$("#nd_progress_container").append(
"<div class='interface'>"+
" Interface: " +i+