fix普通用户大小修改

pull/36/head
ibuler 2016-01-04 17:15:33 +08:00
parent bc2345ba14
commit e9212d5ce6
1 changed files with 13 additions and 1 deletions

View File

@ -224,6 +224,7 @@
} }
else if (dataArray.length == 1 && data != 'error' && navigator.platform == 'Win32'){ else if (dataArray.length == 1 && data != 'error' && navigator.platform == 'Win32'){
var title = 'Jumpserver Web Terminal' + '<span class="text-info"> '+ hostname +'</span>'; var title = 'Jumpserver Web Terminal' + '<span class="text-info"> '+ hostname +'</span>';
/*
layer.open({ layer.open({
type: 2, type: 2,
title: title, title: title,
@ -232,8 +233,11 @@
area: ['628px', '420px'], area: ['628px', '420px'],
content: new_url+data content: new_url+data
}); });
*/
window.open(new_url+data, '', 'width=628px, height=420px');
} else if (dataArray.length == 1 && data != 'error'){ } else if (dataArray.length == 1 && data != 'error'){
layer.open({ /*
layer.open({
type: 2, type: 2,
title: title, title: title,
maxmin: true, maxmin: true,
@ -241,6 +245,8 @@
area: ['628px', '452px'], area: ['628px', '452px'],
content: new_url+data content: new_url+data
}); });
*/
window.open(new_url+data, '', 'width=628px, height=452px')
} }
else { else {
aUrl = ''; aUrl = '';
@ -266,6 +272,7 @@
var hostname = $(a).attr('value'); var hostname = $(a).attr('value');
var title = 'Jumpserver Web Terminal - ' + '<span class="text-info"> '+ hostname +'</span>'; var title = 'Jumpserver Web Terminal - ' + '<span class="text-info"> '+ hostname +'</span>';
if (navigator.platform == 'Win32'){ if (navigator.platform == 'Win32'){
/*
layer.open({ layer.open({
type: 2, type: 2,
title: title, title: title,
@ -274,8 +281,11 @@
shade: false, shade: false,
content: new_url content: new_url
}); });
*/
window.open(new_url+data, '', 'width=628px, height=420px');
} else { } else {
/*
layer.open({ layer.open({
type: 2, type: 2,
title: title, title: title,
@ -284,6 +294,8 @@
shade: false, shade: false,
content: new_url content: new_url
}); });
*/
window.open(new_url+data, '', 'width=628px, height=452px');
} }
return false return false