Update webssh.js

pull/589/head
Mr Chen 11 months ago
parent 64f15e77bc
commit 6b60315036
  1. 1
      plugins/webssh/js/webssh.js

@ -482,6 +482,7 @@ function webShell_addServer(info=[]){
// $('input[name="pkey_passwd"]').val(jdata['pkey_passwd']); // $('input[name="pkey_passwd"]').val(jdata['pkey_passwd']);
} }
$('input[name="ps"]').val(jdata['ps']); $('input[name="ps"]').val(jdata['ps']);
$('input[name="port"]').val(jdata['port']);
$('.auth_type_checkbox').each(function(){ $('.auth_type_checkbox').each(function(){
if ($(this).data('ctype') == jdata['type']){ if ($(this).data('ctype') == jdata['type']){
$(this).addClass('btn-success'); $(this).addClass('btn-success');

Loading…
Cancel
Save