1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update live tv guide

This commit is contained in:
Luke Pulverenti 2016-06-06 21:55:16 -04:00
parent a391e96df5
commit 0f7541beda
19 changed files with 85 additions and 51 deletions

View file

@ -1,4 +1,4 @@
define(['datetime', 'jQuery', 'paper-icon-button-light'], function (datetime, $) {
define(['datetime', 'paper-icon-button-light'], function (datetime) {
var query = {
@ -88,17 +88,33 @@
html += '</div>';
}
var elem = $('#items', context).html(html);
var elem = context.querySelector('#items');
elem.innerHTML = html;
$('.btnCancelSeries', elem).on('click', function () {
deleteSeriesTimer(context, this.getAttribute('data-seriestimerid'));
elem.querySelector('.paperList').addEventListener('click', function (e) {
var btnCancelSeries = parentWithClass(e.target, 'btnCancelSeries');
if (btnCancelSeries) {
deleteSeriesTimer(context, btnCancelSeries.getAttribute('data-seriestimerid'));
}
});
Dashboard.hideLoadingMsg();
}
function parentWithClass(elem, className) {
while (!elem.classList || !elem.classList.contains(className)) {
elem = elem.parentNode;
if (!elem) {
return null;
}
}
return elem;
}
function reload(context) {
Dashboard.showLoadingMsg();