mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update cards
This commit is contained in:
parent
0659c5bdc1
commit
228cefadd8
19 changed files with 78 additions and 47 deletions
|
@ -1398,9 +1398,9 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo
|
|||
}
|
||||
}
|
||||
|
||||
function onUserDataChanged(userData) {
|
||||
function onUserDataChanged(userData, scope) {
|
||||
|
||||
var cards = document.querySelectorAll('.card-withuserdata[data-id="' + userData.ItemId + '"]');
|
||||
var cards = (scope || document.body).querySelectorAll('.card-withuserdata[data-id="' + userData.ItemId + '"]');
|
||||
|
||||
for (var i = 0, length = cards.length; i < length; i++) {
|
||||
updateUserData(cards[i], userData);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue