mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update directoryBrowser
This commit is contained in:
parent
3dbde84cda
commit
db88b76db6
6 changed files with 45 additions and 12 deletions
|
@ -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');
|
||||
|
||||
|
|
|
@ -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 () {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue