Fix for stacking notifications

Video player just plays over the top
Max-height set on footer to display 3 stacked messages
This commit is contained in:
Tim Hobbs 2014-03-17 20:41:42 -07:00
parent d8ba16da08
commit b5b21349f9
3 changed files with 9 additions and 25 deletions

View File

@ -683,6 +683,7 @@ h1 .imageLink {
z-index: 99997;
color: #fff;
border: 0 !important;
max-height: 200px;
}
.footerNotification {

View File

@ -234,7 +234,7 @@
$("#videoBackdrop", footer).show();
footer.css("height", "0");
footer.css("top", "101%");
var videoPlayer = $("#videoPlayer", footer)
//.hide()

View File

@ -292,7 +292,7 @@ var Dashboard = {
options.id = options.id || "notification" + new Date().getTime() + parseInt(Math.random());
var footer = $("#footer");
var footer = $("#footer").css("top", "initial").show();
var parentElem = $('#footerNotifications', footer);
@ -312,22 +312,6 @@ var Dashboard = {
elem.slideDown(400);
}
var videoBackdrop = $("#videoBackdrop");
var isPlaying = false;
if (videoBackdrop.is(":visible")) {
videoBackdrop.css("bottom", "48px");
isPlaying = true;
} else {
footer.show();
}
elem.html(options.html).trigger("create");
if (options.timeout) {
@ -344,16 +328,15 @@ var Dashboard = {
}
footer.on("notification.remove notification.hide", function (e) {
setTimeout(function () { // give the DOM time to catch up
if (parentElem.html() == "") {
if (!isPlaying) {
if (!parentElem.html()) {
footer.slideUp();
} else {
footer.css({ height: "0" });
videoBackdrop.animate({ bottom: "0" }, 400);
}
}
}, 50);
});
},