From e8f36fa42871382c31bf15d312e3001c4f7d0a12 Mon Sep 17 00:00:00 2001 From: Sheng Date: Fri, 23 Aug 2019 10:08:34 +0800 Subject: [PATCH] Renamed variable btn to button --- webssh/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 index 0eea0e0..99390b7 100644 --- 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,