Skip to content

Commit

Permalink
Renamed variable btn to button
Browse files Browse the repository at this point in the history
  • Loading branch information
huashengdun committed Aug 23, 2019
1 parent 4e51d2c commit e8f36fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webssh/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var wssh = {};

jQuery(function($){
var status = $('#status'),
btn = $('.btn-primary'),
button = $('.btn-primary'),
form_container = $('.form-container'),
waiter = $('#waiter'),
style = {},
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -651,7 +651,7 @@ jQuery(function($){

function ajax_post() {
status.text('');
btn.prop('disabled', true);
button.prop('disabled', true);

$.ajax({
url: url,
Expand Down Expand Up @@ -704,7 +704,7 @@ jQuery(function($){
}

status.text('');
btn.prop('disabled', true);
button.prop('disabled', true);

$.ajax({
url: url,
Expand Down

0 comments on commit e8f36fa

Please sign in to comment.