Renamed variable btn to button
This commit is contained in:
@@ -37,7 +37,7 @@ var wssh = {};
|
|||||||
|
|
||||||
jQuery(function($){
|
jQuery(function($){
|
||||||
var status = $('#status'),
|
var status = $('#status'),
|
||||||
btn = $('.btn-primary'),
|
button = $('.btn-primary'),
|
||||||
form_container = $('.form-container'),
|
form_container = $('.form-container'),
|
||||||
waiter = $('#waiter'),
|
waiter = $('#waiter'),
|
||||||
style = {},
|
style = {},
|
||||||
@@ -330,7 +330,7 @@ jQuery(function($){
|
|||||||
|
|
||||||
|
|
||||||
function ajax_complete_callback(resp) {
|
function ajax_complete_callback(resp) {
|
||||||
btn.prop('disabled', false);
|
button.prop('disabled', false);
|
||||||
|
|
||||||
if (resp.status !== 200) {
|
if (resp.status !== 200) {
|
||||||
log_status(resp.status + ': ' + resp.statusText, true);
|
log_status(resp.status + ': ' + resp.statusText, true);
|
||||||
@@ -651,7 +651,7 @@ jQuery(function($){
|
|||||||
|
|
||||||
function ajax_post() {
|
function ajax_post() {
|
||||||
status.text('');
|
status.text('');
|
||||||
btn.prop('disabled', true);
|
button.prop('disabled', true);
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
@@ -704,7 +704,7 @@ jQuery(function($){
|
|||||||
}
|
}
|
||||||
|
|
||||||
status.text('');
|
status.text('');
|
||||||
btn.prop('disabled', true);
|
button.prop('disabled', true);
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
|
|||||||
Reference in New Issue
Block a user