mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-06 20:56:42 +08:00
Merge pull request #5095 from aignatov-bio/ai-sci-8074-fix-protocol-duplication
Fix protocol duplication table reload [SCI-8074]
This commit is contained in:
commit
7a54856a54
1 changed files with 5 additions and 6 deletions
|
@ -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