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

Removed unused properties from BaseItem.

This commit is contained in:
Luke Pulverenti 2013-12-05 11:50:21 -05:00
parent 67bf0c596a
commit bd769dc6f3
4 changed files with 62 additions and 3 deletions

View file

@ -1 +1,42 @@

(function ($, document, apiClient) {
var currentItem;
function renderTimer(page, item) {
currentItem = item;
$('.timerName', page).html(item.Name);
Dashboard.hideLoadingMsg();
}
function reload(page) {
Dashboard.showLoadingMsg();
var id = getParameterByName('id');
apiClient.getLiveTvTimer(id).done(function (result) {
renderTimer(page, result);
});
}
$(document).on('pageinit', "#liveTvTimerPage", function () {
var page = this;
}).on('pagebeforeshow', "#liveTvTimerPage", function () {
var page = this;
reload(page);
}).on('pagehide', "#liveTvTimerPage", function () {
currentItem = null;
});
})(jQuery, document, ApiClient);