mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
remove tvos dts hack no longer needed
This commit is contained in:
parent
ef2c5637be
commit
fcdcd1d5f4
15 changed files with 112 additions and 47 deletions
|
@ -36,6 +36,18 @@
|
|||
restartAutoRefresh();
|
||||
};
|
||||
|
||||
self.pause = function () {
|
||||
stopAutoRefresh();
|
||||
};
|
||||
|
||||
self.resume = function (refreshData) {
|
||||
if (refreshData) {
|
||||
self.refresh();
|
||||
} else {
|
||||
restartAutoRefresh();
|
||||
}
|
||||
};
|
||||
|
||||
self.destroy = function () {
|
||||
|
||||
stopAutoRefresh();
|
||||
|
@ -493,7 +505,7 @@
|
|||
timerAttributes += ' data-seriestimerid="' + program.SeriesTimerId + '"';
|
||||
}
|
||||
|
||||
html += '<button data-action="' + clickAction + '"' + timerAttributes + ' data-id="' + program.Id + '" data-serverid="' + program.ServerId + '" data-type="' + program.Type + '" class="' + cssClass + '" style="left:' + startPercent + '%;width:' + endPercent + '%;">';
|
||||
html += '<button data-action="' + clickAction + '"' + timerAttributes + ' data-channelid="' + program.ChannelId + '" data-id="' + program.Id + '" data-serverid="' + program.ServerId + '" data-type="' + program.Type + '" class="' + cssClass + '" style="left:' + startPercent + '%;width:' + endPercent + '%;">';
|
||||
|
||||
if (displayInnerContent) {
|
||||
var guideProgramNameClass = "guideProgramName";
|
||||
|
@ -793,6 +805,7 @@
|
|||
|
||||
start.setDate(start.getDate() + 1);
|
||||
start.setHours(0, 0, 0, 0);
|
||||
tabIndex++;
|
||||
}
|
||||
|
||||
page.querySelector('.emby-tabs-slider').innerHTML = dateTabsHtml;
|
||||
|
@ -959,8 +972,9 @@
|
|||
restartAutoRefresh();
|
||||
});
|
||||
|
||||
context.querySelector('.guideDateTabsSlider').addEventListener('click', function (e) {
|
||||
var tabButton = dom.parentWithClass(e.target, 'guide-date-tab-button');
|
||||
context.querySelector('.guideDateTabs').addEventListener('tabchange', function (e) {
|
||||
|
||||
var tabButton = e.target.querySelectorAll('.guide-date-tab-button')[parseInt(e.detail.selectedTabIndex)];
|
||||
if (tabButton) {
|
||||
var date = new Date();
|
||||
date.setTime(parseInt(tabButton.getAttribute('data-date')));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue