mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-05 22:44:22 +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 () {
|
||||
flash.fadeTo(500, 0).slideUp(500, function () {
|
||||
$(this).remove();
|
||||
$('#content-wrapper').removeClass('alert-shown');
|
||||
if($('.alert').length <= 0) {
|
||||
$('#content-wrapper').removeClass('alert-shown');
|
||||
}
|
||||
});
|
||||
}, 5000);
|
||||
}
|
||||
|
|
|
@ -58,6 +58,7 @@ function updateSamplesTypesandGroups() {
|
|||
function sampleAlertMsg(message, type) {
|
||||
var alertType;
|
||||
var glyphSign;
|
||||
$('#notifications').html('');
|
||||
if (type === 'success') {
|
||||
alertType = ' alert-success ';
|
||||
glyphSign = ' glyphicon-ok-sign ';
|
||||
|
|
Loading…
Reference in a new issue