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 }); };