update directoryBrowser
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user