mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
sync updates
This commit is contained in:
parent
9aaa5a1f2d
commit
12e5298463
2 changed files with 24 additions and 0 deletions
|
@ -311,6 +311,21 @@
|
|||
}
|
||||
}
|
||||
|
||||
function onWebSocketMessage(e, msg) {
|
||||
|
||||
var page = $.mobile.activePage;
|
||||
|
||||
if (msg.MessageType == "ScheduledTaskEnded") {
|
||||
|
||||
var result = msg.Data;
|
||||
|
||||
if (result.Key == 'AutoOrganize') {
|
||||
|
||||
reloadItems(page);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$(document).on('pageinit', "#libraryFileOrganizerLogPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
@ -337,6 +352,8 @@
|
|||
taskKey: 'AutoOrganize'
|
||||
});
|
||||
|
||||
$(ApiClient).on("websocketmessage.autoorganizelog", onWebSocketMessage);
|
||||
|
||||
}).on('pagehide', "#libraryFileOrganizerLogPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
@ -347,6 +364,8 @@
|
|||
$('.btnOrganize', page).taskButton({
|
||||
mode: 'off'
|
||||
});
|
||||
|
||||
$(ApiClient).off(".autoorganizelog");
|
||||
});
|
||||
|
||||
window.OrganizerLogPage = {
|
||||
|
|
|
@ -459,6 +459,11 @@
|
|||
});
|
||||
|
||||
$('.btnCloseSearch').on('click', closeSearchOverlay);
|
||||
|
||||
$('.viewMenuSearchForm').on('submit', function () {
|
||||
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
function closeSearchOverlay() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue