mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 21:21:50 +08:00
Fix flash message display in samples table [SCI-816]
This commit is contained in:
parent
d565cb4eef
commit
ee5e0ad455
1 changed files with 7 additions and 0 deletions
|
@ -487,6 +487,13 @@ function onClickSave() {
|
|||
data: data,
|
||||
success: function (data) {
|
||||
sampleAlertMsg(data.flash, "success");
|
||||
var flash = $('.alert');
|
||||
window.setTimeout(function () {
|
||||
flash.fadeTo(500, 0).slideUp(500, function () {
|
||||
$(this).remove();
|
||||
$('#content-wrapper').removeClass('alert-shown');
|
||||
});
|
||||
}, 5000);
|
||||
onClickCancel();
|
||||
},
|
||||
error: function (e, eData, status, xhr) {
|
||||
|
|
Loading…
Reference in a new issue