1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

sync updates

This commit is contained in:
Luke Pulverenti 2015-02-14 14:36:40 -05:00
parent 9aaa5a1f2d
commit 12e5298463
2 changed files with 24 additions and 0 deletions

View file

@ -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 = {

View file

@ -459,6 +459,11 @@
});
$('.btnCloseSearch').on('click', closeSearchOverlay);
$('.viewMenuSearchForm').on('submit', function () {
return false;
});
}
function closeSearchOverlay() {