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 { #notification .alert {
margin-bottom: 0px; margin-bottom: 0;
background-color: #FCF8E3; background-color: #f1df83;
color: #9E9980; 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 { #notification .close {

View File

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