mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-12 01:11:24 +08:00
Fix protocol duplication table reload [SCI-8074]
This commit is contained in:
parent
f22f00f856
commit
2a794b68ac
1 changed files with 5 additions and 6 deletions
|
|
@ -516,13 +516,12 @@ var ProtocolsIndex = (function() {
|
||||||
url: $el.data('url'),
|
url: $el.data('url'),
|
||||||
data: JSON.stringify({ ids: rowsSelected }),
|
data: JSON.stringify({ ids: rowsSelected }),
|
||||||
contentType: 'application/json'
|
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);
|
animateSpinner(null, false);
|
||||||
HelperModule.flashAlertMsg(data.responseJSON.message, 'danger');
|
HelperModule.flashAlertMsg(data.responseJSON.message, 'danger');
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue