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