mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-04 10:19:25 +02:00
Show notifications when webplayer is started
This commit is contained in:
parent
b845d86e3e
commit
cbf908b21e
1 changed files with 5 additions and 0 deletions
|
@ -95,6 +95,11 @@ function displayNotification(message, timeout) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (message) {
|
if (message) {
|
||||||
|
if ($('#webplayer').css('display') !== 'block') {
|
||||||
|
$('#notification').css('bottom', '20px');
|
||||||
|
} else {
|
||||||
|
$('#notification').css('bottom', '120px');
|
||||||
|
}
|
||||||
$('#notification-content').html(message);
|
$('#notification-content').html(message);
|
||||||
$('#notification').removeClass('notification-out');
|
$('#notification').removeClass('notification-out');
|
||||||
notificationTimeout = setTimeout(function() {
|
notificationTimeout = setTimeout(function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue