mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 23:16:15 +08:00
Disable filter save button on submit [SCI-6523] (#3833)
This commit is contained in:
parent
f3c36a957b
commit
bac8fbbe58
|
@ -212,6 +212,7 @@
|
|||
|
||||
$(document).on('click', '#saveRepositoryTableFilterButton', function() {
|
||||
var $modal = $('#modalSaveRepositoryTableFilter');
|
||||
var $button = $(this);
|
||||
var url = $modal.data().saveUrl;
|
||||
var method;
|
||||
|
||||
|
@ -222,6 +223,8 @@
|
|||
method = 'POST';
|
||||
}
|
||||
|
||||
$button.addClass('disabled');
|
||||
|
||||
$.ajax({
|
||||
type: method,
|
||||
url: url,
|
||||
|
@ -252,9 +255,11 @@
|
|||
}
|
||||
|
||||
repositoryFilterObject.filterName = response.data.attributes.name;
|
||||
$button.removeClass('disabled');
|
||||
},
|
||||
error: function(response) {
|
||||
HelperModule.flashAlertMsg(response.responseJSON.message, 'danger');
|
||||
$button.removeClass('disabled');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -195,6 +195,7 @@
|
|||
color: $color-silver-chalice;
|
||||
cursor: auto;
|
||||
opacity: .5;
|
||||
pointer-events: none;
|
||||
|
||||
&.btn-primary,
|
||||
&.btn-danger {
|
||||
|
|
Loading…
Reference in a new issue