mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update translations
This commit is contained in:
parent
69682bd717
commit
a9e5a73d42
11 changed files with 122 additions and 96 deletions
|
@ -1170,18 +1170,42 @@ $(document).on('pagebeforeshow', "#dashboardPage", DashboardPage.onPageShow)
|
|||
|
||||
var msg = data;
|
||||
|
||||
if (msg.MessageType === "ActivityLogEntryCreated") {
|
||||
if (msg.MessageType === "ActivityLogEntry") {
|
||||
elem.each(function () {
|
||||
|
||||
reloadData(this);
|
||||
});
|
||||
}
|
||||
|
||||
}).on('websocketopen.activityloglistener', function (e, data) {
|
||||
|
||||
startListening();
|
||||
});
|
||||
}
|
||||
|
||||
function startListening() {
|
||||
|
||||
if (ApiClient.isWebSocketOpen()) {
|
||||
ApiClient.sendWebSocketMessage("ActivityLogEntryStart", "0,1500");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function stopListening() {
|
||||
|
||||
if (ApiClient.isWebSocketOpen()) {
|
||||
ApiClient.sendWebSocketMessage("ActivityLogEntryStop", "0,1500");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function destroyList(elem) {
|
||||
|
||||
$(ApiClient).off('websocketmessage.activityloglistener');
|
||||
$(ApiClient).off('websocketopen.activityloglistener').off('websocketmessage.activityloglistener');
|
||||
|
||||
stopListening();
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
$.fn.activityLogList = function (action) {
|
||||
|
@ -1192,6 +1216,8 @@ $(document).on('pagebeforeshow', "#dashboardPage", DashboardPage.onPageShow)
|
|||
createList(this);
|
||||
}
|
||||
|
||||
startListening();
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue