mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 07:26:15 +08:00
Fix protocol duplication table reload [SCI-8074]
This commit is contained in:
parent
f22f00f856
commit
2a794b68ac
|
@ -516,13 +516,12 @@ var ProtocolsIndex = (function() {
|
|||
url: $el.data('url'),
|
||||
data: JSON.stringify({ ids: rowsSelected }),
|
||||
contentType: 'application/json'
|
||||
},
|
||||
(data) => {
|
||||
animateSpinner(null, false);
|
||||
HelperModule.flashAlertMsg(data.message, 'success');
|
||||
reloadTable();
|
||||
}
|
||||
).error((data) => {
|
||||
).success((data) => {
|
||||
animateSpinner(null, false);
|
||||
HelperModule.flashAlertMsg(data.message, 'success');
|
||||
reloadTable();
|
||||
}).error((data) => {
|
||||
animateSpinner(null, false);
|
||||
HelperModule.flashAlertMsg(data.responseJSON.message, 'danger');
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue