update live tv images

This commit is contained in:
Luke Pulverenti 2016-02-18 13:19:18 -05:00
parent 9e4ec97ed5
commit 02e924e3c5
4 changed files with 8 additions and 4 deletions

View File

@ -43,7 +43,7 @@
}
if (imgUrl) {
html += '<paper-fab mini class="blue" style="background-image:url(\'' + imgUrl + '\');background-repeat:no-repeat;background-position:center center;background-size: cover;" item-icon></paper-fab>';
html += '<paper-fab mini class="blue lazy" data-src="' + imgUrl + '" style="background-repeat:no-repeat;background-position:center center;background-size: cover;" item-icon></paper-fab>';
}
else if (program.IsKids) {
html += '<paper-fab mini style="background:#2196F3;" icon="person" item-icon></paper-fab>';

View File

@ -144,7 +144,9 @@
var timers = result.Items;
LiveTvHelpers.getTimersHtml(timers).then(function(html) {
var elem = $('.scheduleTab', page).html(html);
var elem = $('.scheduleTab', page).html(html)[0];
ImageLoader.lazyChildren(elem);
$('.btnDeleteTimer', elem).on('click', function () {

View File

@ -22,7 +22,9 @@
function renderTimers(page, timers) {
LiveTvHelpers.getTimersHtml(timers).then(function (html) {
var elem = $('#items', page).html(html);
var elem = $('#items', page).html(html)[0];
ImageLoader.lazyChildren(elem);
$('.btnDeleteTimer', elem).on('click', function () {

View File

@ -240,7 +240,7 @@ paper-dialog[role="alertdialog"] + iron-overlay-backdrop {
}
paper-tabs {
background-color: #111;
background-color: #080808;
color: #fff;
box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
}