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

update translations

This commit is contained in:
Luke Pulverenti 2014-08-11 10:15:53 -04:00
parent 69682bd717
commit a9e5a73d42
11 changed files with 122 additions and 96 deletions

View file

@ -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;
};