Fix flash message display in samples table [SCI-816]

This commit is contained in:
Oleksii Kriuchykhin 2016-12-21 17:26:33 +01:00
parent d565cb4eef
commit ee5e0ad455

View file

@ -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) {