Backend notifications shall be floating.

This commit is contained in:
alext 2017-11-15 17:21:59 +01:00
parent e8f0f57380
commit b8b66c28da
2 changed files with 13 additions and 5 deletions

View file

@ -105,9 +105,17 @@ root {
}
#notification .alert {
margin-bottom: 0px;
background-color: #FCF8E3;
margin-bottom: 0;
background-color: #f1df83;
color: #9E9980;
box-shadow: 1px 1px 3px #a0a0a0;
padding: 15px;
position: absolute;
z-index: 200;
right: 15px;
bottom: 15px;
min-width: 300px;
max-width: 750px;
}
#notification .close {

View file

@ -110,8 +110,8 @@ window.Backend = window.Backend || {};
if (actions === undefined) {
actions = [];
setTimeout(function() {
$('#notification').slideUp('slow');
}, 7000);
$('#notification').fadeIn();
}, 5000);
}
var customActionsHtml = '';
@ -135,7 +135,7 @@ window.Backend = window.Backend || {};
'</div>';
$('#notification').html(notificationHtml);
$('#notification').show('blind');
$('#notification').show('fade');
}
})(window.Backend);