Skip to content

Commit e8f36fa

Browse files
committed
Renamed variable btn to button
1 parent 4e51d2c commit e8f36fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

webssh/static/js/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var wssh = {};
3737

3838
jQuery(function($){
3939
var status = $('#status'),
40-
btn = $('.btn-primary'),
40+
button = $('.btn-primary'),
4141
form_container = $('.form-container'),
4242
waiter = $('#waiter'),
4343
style = {},
@@ -330,7 +330,7 @@ jQuery(function($){
330330

331331

332332
function ajax_complete_callback(resp) {
333-
btn.prop('disabled', false);
333+
button.prop('disabled', false);
334334

335335
if (resp.status !== 200) {
336336
log_status(resp.status + ': ' + resp.statusText, true);
@@ -651,7 +651,7 @@ jQuery(function($){
651651

652652
function ajax_post() {
653653
status.text('');
654-
btn.prop('disabled', true);
654+
button.prop('disabled', true);
655655

656656
$.ajax({
657657
url: url,
@@ -704,7 +704,7 @@ jQuery(function($){
704704
}
705705

706706
status.text('');
707-
btn.prop('disabled', true);
707+
button.prop('disabled', true);
708708

709709
$.ajax({
710710
url: url,

0 commit comments

Comments
 (0)