mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
new UI - view console - remove temporary code that made view console work under newui folder before.
This commit is contained in:
parent
25c0d0f197
commit
f813808817
@ -782,7 +782,7 @@ function resetViewConsoleAction(jsonObj, $detailsTab) {
|
||||
if (jsonObj.state == 'Running') {
|
||||
//console proxy image
|
||||
var imgUrl = "console?cmd=thumbnail&vm=" + jsonObj.id + "&w=144&h=110";
|
||||
imgUrl = "http://localhost:8080/client/" + imgUrl; //***** temporary hack. This line will be removed after new UI code (/ui/new/*) moves to /ui/*
|
||||
//imgUrl = "http://localhost:8080/client/" + imgUrl; //***** temporary hack. This line will be removed after new UI code (/ui/new/*) moves to /ui/*
|
||||
|
||||
var time = new Date();
|
||||
$viewConsoleTemplate.find("#box1").hide().css("background", "url("+imgUrl+"&t="+time.getTime()+")");
|
||||
@ -802,7 +802,7 @@ function resetViewConsoleAction(jsonObj, $detailsTab) {
|
||||
//console proxy popup
|
||||
$viewConsoleTemplate.data("proxyUrl", "console?cmd=access&vm=" + jsonObj.id).data("vmId",jsonObj.id).click(function(event) {
|
||||
var proxyUrl = $(this).data("proxyUrl");
|
||||
proxyUrl = "http://localhost:8080/client/" + proxyUrl; //***** temporary hack. This line will be removed after new UI code (/ui/new/*) moves to /ui/*
|
||||
//proxyUrl = "http://localhost:8080/client/" + proxyUrl; //***** temporary hack. This line will be removed after new UI code (/ui/new/*) moves to /ui/*
|
||||
var viewer = window.open(proxyUrl, $(this).data("vmId"),"width=820,height=640,resizable=yes,menubar=no,status=no,scrollbars=no,toolbar=no,location=no");
|
||||
viewer.focus();
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user