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

update directoryBrowser

This commit is contained in:
Luke Pulverenti 2015-10-16 18:21:03 -04:00
parent 3dbde84cda
commit db88b76db6
6 changed files with 45 additions and 12 deletions

View file

@ -27,7 +27,9 @@
var html = '';
html += '<div class="paperList">';
if (devices.length) {
html += '<div class="paperList">';
}
html += devices.map(function (d) {
@ -65,7 +67,9 @@
}).join('');
html += '</div>';
if (devices.length) {
html += '</div>';
}
var elem = $('.devicesList', page).html(html).trigger('create');

View file

@ -375,7 +375,7 @@
items.push({
name: Globalize.translate('ButtonSync'),
id: 'sync',
ironIcon: 'refresh'
ironIcon: 'sync'
});
}
@ -1257,7 +1257,7 @@
items.push({
name: Globalize.translate('ButtonSync'),
id: 'sync',
ironIcon: 'refresh'
ironIcon: 'sync'
});
require(['actionsheet'], function () {

View file

@ -81,6 +81,12 @@
html += '</div>';
}
if (tuners.length) {
page.querySelector('.tunerSection').classList.remove('hide');
} else {
page.querySelector('.tunerSection').classList.add('hide');
}
var elem = $('.tunerList', page).html(html);
$('.btnResetTuner', elem).on('click', function () {
@ -493,6 +499,22 @@
reload(page);
// on here
$('.btnRefresh', page).taskButton({
mode: 'on',
progressElem: page.querySelector('.refreshGuideProgress'),
taskKey: 'RefreshGuide'
});
}).on('pagehide', "#liveTvStatusPage", function () {
var page = this;
// off here
$('.btnRefreshGuide', page).taskButton({
mode: 'off'
});
});
})(jQuery, document, window);