bug 12381: fix a bug that opening another window to view console causes a JavaScript error "invalid argument"

This commit is contained in:
Jessica Wang 2011-12-07 19:01:03 -08:00
parent c2bfc51b2b
commit 16ff38d0fd
2 changed files with 3 additions and 3 deletions

View File

@ -1467,7 +1467,7 @@
return clientConsoleUrl + '?cmd=access&vm=' + args.context.instances[0].id;
},
title: function(args) {
return getVmName(args.context.instances[0].name, args.context.instances[0].displayname) + ' console';
return "console"; //can't have space in window name in window.open()
},
width: 820,
height: 640

View File

@ -1735,7 +1735,7 @@
return clientConsoleUrl + '?cmd=access&vm=' + args.context.routers[0].id;
},
title: function(args) {
return args.context.routers[0].name + ' console';
return "console"; //can't have space in window name in window.open()
},
width: 820,
height: 640
@ -3980,7 +3980,7 @@
return clientConsoleUrl + '?cmd=access&vm=' + args.context.systemVMs[0].id;
},
title: function(args) {
return args.context.systemVMs[0].systemvmtype + ' console';
return "console"; //can't have space in window name in window.open()
},
width: 820,
height: 640