Lines 359-368
Link Here
|
359 |
checkbox.attr('checked', false); |
359 |
checkbox.attr('checked', false); |
360 |
$(`#spinner-${id}`).hide(); |
360 |
$(`#spinner-${id}`).hide(); |
361 |
checkbox.show(); |
361 |
checkbox.show(); |
362 |
$('.limit-action').removeClass('disabled'); |
|
|
363 |
$('#value_selector').prop('disabled',false); |
364 |
} |
362 |
} |
365 |
}, |
363 |
}, |
|
|
364 |
complete: function() { |
365 |
$('.limit-action').removeClass('disabled'); |
366 |
$('#value_selector').prop('disabled',false); |
367 |
}, |
366 |
error: function(xhr, status, error) { |
368 |
error: function(xhr, status, error) { |
367 |
var errorMessage = xhr.status + ': ' + xhr.statusText |
369 |
var errorMessage = xhr.status + ': ' + xhr.statusText |
368 |
alert('Error - ' + errorMessage); |
370 |
alert('Error - ' + errorMessage); |
Lines 389-398
Link Here
|
389 |
checkbox.attr('checked', true); |
391 |
checkbox.attr('checked', true); |
390 |
$(`#spinner-${id}`).hide(); |
392 |
$(`#spinner-${id}`).hide(); |
391 |
checkbox.show(); |
393 |
checkbox.show(); |
392 |
$('.limit-action').removeClass('disabled'); |
|
|
393 |
$('#value_selector').prop('disabled',false); |
394 |
} |
394 |
} |
395 |
}, |
395 |
}, |
|
|
396 |
complete: function() { |
397 |
$('.limit-action').removeClass('disabled'); |
398 |
$('#value_selector').prop('disabled',false); |
399 |
}, |
396 |
error: function(xhr, status, error) { |
400 |
error: function(xhr, status, error) { |
397 |
var errorMessage = xhr.status + ': ' + xhr.statusText |
401 |
var errorMessage = xhr.status + ': ' + xhr.statusText |
398 |
alert('Error - ' + errorMessage); |
402 |
alert('Error - ' + errorMessage); |
399 |
- |
|
|