mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-10 13:59:56 +08:00
Improve multiple messages handling in samples [SCI-853]
This commit is contained in:
parent
0fd7688427
commit
773b00933a
2 changed files with 4 additions and 1 deletions
|
@ -212,7 +212,9 @@ var HelperModule = (function(){
|
||||||
window.setTimeout(function () {
|
window.setTimeout(function () {
|
||||||
flash.fadeTo(500, 0).slideUp(500, function () {
|
flash.fadeTo(500, 0).slideUp(500, function () {
|
||||||
$(this).remove();
|
$(this).remove();
|
||||||
$('#content-wrapper').removeClass('alert-shown');
|
if($('.alert').length <= 0) {
|
||||||
|
$('#content-wrapper').removeClass('alert-shown');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}, 5000);
|
}, 5000);
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,6 +58,7 @@ function updateSamplesTypesandGroups() {
|
||||||
function sampleAlertMsg(message, type) {
|
function sampleAlertMsg(message, type) {
|
||||||
var alertType;
|
var alertType;
|
||||||
var glyphSign;
|
var glyphSign;
|
||||||
|
$('#notifications').html('');
|
||||||
if (type === 'success') {
|
if (type === 'success') {
|
||||||
alertType = ' alert-success ';
|
alertType = ' alert-success ';
|
||||||
glyphSign = ' glyphicon-ok-sign ';
|
glyphSign = ' glyphicon-ok-sign ';
|
||||||
|
|
Loading…
Add table
Reference in a new issue