mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix sync task button
This commit is contained in:
parent
f6b89286dc
commit
9ebe643e87
9 changed files with 66 additions and 48 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['jQuery', 'listViewStyle'], function ($) {
|
||||
define(['jQuery', 'scripts/taskbutton', 'listViewStyle'], function ($, taskButton) {
|
||||
|
||||
function resetTuner(page, id) {
|
||||
|
||||
|
@ -595,10 +595,11 @@
|
|||
reload(page);
|
||||
|
||||
// on here
|
||||
$('.btnRefresh', page).taskButton({
|
||||
taskButton({
|
||||
mode: 'on',
|
||||
progressElem: page.querySelector('.refreshGuideProgress'),
|
||||
taskKey: 'RefreshGuide'
|
||||
taskKey: 'RefreshGuide',
|
||||
button: page.querySelector('.btnRefresh')
|
||||
});
|
||||
|
||||
}).on('pagehide', "#liveTvStatusPage", function () {
|
||||
|
@ -606,8 +607,11 @@
|
|||
var page = this;
|
||||
|
||||
// off here
|
||||
$('.btnRefreshGuide', page).taskButton({
|
||||
mode: 'off'
|
||||
taskButton({
|
||||
mode: 'off',
|
||||
progressElem: page.querySelector('.refreshGuideProgress'),
|
||||
taskKey: 'RefreshGuide',
|
||||
button: page.querySelector('.btnRefresh')
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue