support plot keywords

This commit is contained in:
Luke Pulverenti 2014-01-14 15:56:53 -05:00
parent e3b57e4c97
commit e8dd5c816f
2 changed files with 13 additions and 4 deletions

View File

@ -14,6 +14,11 @@
transition: all 500ms ease;
}
.posterItemOverlayTarget {
position: absolute;
right: 0;
top: 50%;
}
.smallBackdropPosterItem, .smallPosterItem {
margin: 5px;

View File

@ -916,6 +916,8 @@
imageCssClass += " coveredPosterItemImage";
}
html += '<div class="posterItemOverlayTarget"></div>';
var progressHtml = LibraryBrowser.getItemProgressBarHtml(item);
html += '<div class="' + imageCssClass + '" style="' + style + '">';
@ -2498,7 +2500,11 @@
$(document.body).append(html);
var popup = $('.itemFlyout').on('mouseenter', onOverlayMouseOver).on('mouseleave', onOverlayMouseOut).popup({ positionTo: elem }).trigger('create').popup("open").on("popupafterclose", function () {
var popup = $('.itemFlyout').on('mouseenter', onOverlayMouseOver).on('mouseleave', onOverlayMouseOut).popup({
positionTo: $('.posterItemOverlayTarget', elem)
}).trigger('create').popup("open").on("popupafterclose", function () {
$(this).off("popupafterclose").off("mouseenter").off("mouseleave").remove();
});
@ -2588,7 +2594,7 @@
onShowTimerExpired(elem);
}, 600);
}, 500);
}
// https://hacks.mozilla.org/2013/04/detecting-touch-its-the-why-not-the-how/
@ -2599,8 +2605,6 @@
return this;
}
return this;
return this.on('mouseenter', '.posterItem', onHoverIn)
.on('mouseleave', '.posterItem', onHoverOut)
.on('click', '.posterItem', onPosterItemClicked);