Commit ae8aeb57 by Kálmán Viktor

dashboard: fix novnc

parent 7074f30d
...@@ -233,6 +233,8 @@ PIPELINE_JS = { ...@@ -233,6 +233,8 @@ PIPELINE_JS = {
"no-vnc/include/base64.js", "no-vnc/include/base64.js",
"no-vnc/include/websock.js", "no-vnc/include/websock.js",
"no-vnc/include/des.js", "no-vnc/include/des.js",
"no-vnc/include/keysym.js",
"no-vnc/include/keysymdef.js",
"no-vnc/include/keyboard.js", "no-vnc/include/keyboard.js",
"no-vnc/include/input.js", "no-vnc/include/input.js",
"no-vnc/include/display.js", "no-vnc/include/display.js",
......
...@@ -20,7 +20,7 @@ $(function() { ...@@ -20,7 +20,7 @@ $(function() {
rfb = 0; rfb = 0;
} }
$("#vm-info-pane").fadeIn(); $("#vm-info-pane").fadeIn();
$("#vm-detail-pane").removeClass("col-md-12"); $("#vm-detail-pane").removeClass("col-md-12").addClass("col-md-8");
}); });
$('#sendCtrlAltDelButton').click(function() { $('#sendCtrlAltDelButton').click(function() {
rfb.sendCtrlAltDel(); return false;}); rfb.sendCtrlAltDel(); return false;});
...@@ -35,7 +35,7 @@ $(function() { ...@@ -35,7 +35,7 @@ $(function() {
var host, port, password, path; var host, port, password, path;
$("#vm-info-pane").hide(); $("#vm-info-pane").hide();
$("#vm-detail-pane").addClass("col-md-12"); $("#vm-detail-pane").removeClass("col-md-8").addClass("col-md-12");
WebUtil.init_logging('warn'); WebUtil.init_logging('warn');
host = window.location.hostname; host = window.location.hostname;
...@@ -58,13 +58,13 @@ $(function() { ...@@ -58,13 +58,13 @@ $(function() {
'local_cursor': true, 'local_cursor': true,
'shared': true, 'shared': true,
'view_only': false, 'view_only': false,
'updateState': updateState}); 'onUpdateState': updateState});
rfb.connect(host, port, password, data); rfb.connect(host, port, password, data);
} }
}).fail(function(){ }).fail(function(){
$('#noVNC_status').html("Can't connect to console."); $('#noVNC_status').html("Can't connect to console.");
}); });
}); });
if (window.location.hash == "#console") if (window.location.hash === "#console")
window.onscriptsload = function(){$('a[href$="console"]').click();}; $('a[href$="console"]').trigger("click");
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment