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', 'apphost', 'cardStyle'], function ($, appHost) {
|
||||
define(['jQuery', 'apphost', 'scripts/taskbutton', 'cardStyle'], function ($, appHost, taskButton) {
|
||||
|
||||
function changeCollectionType(page, virtualFolder) {
|
||||
|
||||
|
@ -461,10 +461,11 @@
|
|||
var page = this;
|
||||
|
||||
// on here
|
||||
$('.btnRefresh', page).taskButton({
|
||||
taskButton({
|
||||
mode: 'on',
|
||||
progressElem: page.querySelector('.refreshProgress'),
|
||||
taskKey: 'RefreshLibrary'
|
||||
taskKey: 'RefreshLibrary',
|
||||
button: page.querySelector('.btnRefresh')
|
||||
});
|
||||
|
||||
});
|
||||
|
@ -474,8 +475,11 @@
|
|||
var page = this;
|
||||
|
||||
// off here
|
||||
$('.btnRefresh', page).taskButton({
|
||||
mode: 'off'
|
||||
taskButton({
|
||||
mode: 'off',
|
||||
progressElem: page.querySelector('.refreshProgress'),
|
||||
taskKey: 'RefreshLibrary',
|
||||
button: page.querySelector('.btnRefresh')
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue