From f32ba65596e515462a2bc53564361c2748ac076a Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 22 Jan 2023 13:28:42 +0800 Subject: [PATCH] Update webssh.js --- plugins/webssh/js/webssh.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/webssh/js/webssh.js b/plugins/webssh/js/webssh.js index 6a9e9127b..dd870d1bc 100755 --- a/plugins/webssh/js/webssh.js +++ b/plugins/webssh/js/webssh.js @@ -438,10 +438,9 @@ function webShell_addServer(){ success:function(){ $('.auth_type_checkbox').click(function(){ var ctype = $(this).attr('data-ctype'); - $('.auth_type_checkbox').removeClass('btn-success'); $(this).addClass('btn-success'); - + if (ctype == 0){ $('.c_password_view').removeClass('show').addClass('show'); $('.c_pkey_view').removeClass('show').addClass('hide'); @@ -451,7 +450,6 @@ function webShell_addServer(){ $('.c_password_view').removeClass('show').addClass('hide'); $('.c_pkey_view').removeClass('show').addClass('show'); $('.key_pwd_line').removeClass('show').addClass('show'); - } }); },