webssh

Web based ssh client https://github.com/huashengdun/webssh webssh.huashengdun.org/
git clone http://git.hanabi.in/repos/webssh.git
Log | Files | Refs | README | LICENSE

commit e8f36fa42871382c31bf15d312e3001c4f7d0a12
parent 4e51d2c3abf4aaa0ea960178b974fec97136eb24
Author: Sheng <webmaster0115@gmail.com>
Date:   Fri, 23 Aug 2019 10:08:34 +0800

Renamed variable btn to button

Diffstat:
Mwebssh/static/js/main.js | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/webssh/static/js/main.js b/webssh/static/js/main.js @@ -37,7 +37,7 @@ var wssh = {}; jQuery(function($){ var status = $('#status'), - btn = $('.btn-primary'), + button = $('.btn-primary'), form_container = $('.form-container'), waiter = $('#waiter'), style = {}, @@ -330,7 +330,7 @@ jQuery(function($){ function ajax_complete_callback(resp) { - btn.prop('disabled', false); + button.prop('disabled', false); if (resp.status !== 200) { log_status(resp.status + ': ' + resp.statusText, true); @@ -651,7 +651,7 @@ jQuery(function($){ function ajax_post() { status.text(''); - btn.prop('disabled', true); + button.prop('disabled', true); $.ajax({ url: url, @@ -704,7 +704,7 @@ jQuery(function($){ } status.text(''); - btn.prop('disabled', true); + button.prop('disabled', true); $.ajax({ url: url,