mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-08 21:06:24 +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'),
|
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