Skip to content

Commit 16ff38d

Browse files
author
Jessica Wang
committed
bug 12381: fix a bug that opening another window to view console causes a JavaScript error "invalid argument"
1 parent c2bfc51 commit 16ff38d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎ui/scripts/instances.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,7 @@
14671467
return clientConsoleUrl + '?cmd=access&vm=' + args.context.instances[0].id;
14681468
},
14691469
title: function(args) {
1470-
return getVmName(args.context.instances[0].name, args.context.instances[0].displayname) + ' console';
1470+
return "console"; //can't have space in window name in window.open()
14711471
},
14721472
width: 820,
14731473
height: 640

‎ui/scripts/system.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,7 @@
17351735
return clientConsoleUrl + '?cmd=access&vm=' + args.context.routers[0].id;
17361736
},
17371737
title: function(args) {
1738-
return args.context.routers[0].name + ' console';
1738+
return "console"; //can't have space in window name in window.open()
17391739
},
17401740
width: 820,
17411741
height: 640
@@ -3980,7 +3980,7 @@
39803980
return clientConsoleUrl + '?cmd=access&vm=' + args.context.systemVMs[0].id;
39813981
},
39823982
title: function(args) {
3983-
return args.context.systemVMs[0].systemvmtype + ' console';
3983+
return "console"; //can't have space in window name in window.open()
39843984
},
39853985
width: 820,
39863986
height: 640

0 commit comments

Comments
 (0)