mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
limit number of people in dlna responses
This commit is contained in:
parent
11615f4399
commit
46d25396c6
8 changed files with 191 additions and 53 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['browser', 'css!./viewcontainer-lite'], function (browser) {
|
||||
define(['browser', 'dom', 'css!./viewcontainer-lite'], function (browser, dom) {
|
||||
'use strict';
|
||||
|
||||
var mainAnimatedPages = document.querySelector('.mainAnimatedPages');
|
||||
|
@ -140,7 +140,16 @@ define(['browser', 'css!./viewcontainer-lite'], function (browser) {
|
|||
|
||||
currentAnimations = animations;
|
||||
|
||||
setTimeout(resolve, duration);
|
||||
var onAnimationComplete = function () {
|
||||
dom.removeEventListener(newAnimatedPage, 'animationend', onAnimationComplete, {
|
||||
once: true
|
||||
});
|
||||
resolve();
|
||||
};
|
||||
|
||||
dom.addEventListener(newAnimatedPage, 'animationend', onAnimationComplete, {
|
||||
once: true
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -161,7 +170,16 @@ define(['browser', 'css!./viewcontainer-lite'], function (browser) {
|
|||
|
||||
currentAnimations = animations;
|
||||
|
||||
setTimeout(resolve, duration);
|
||||
var onAnimationComplete = function () {
|
||||
dom.removeEventListener(newAnimatedPage, 'animationend', onAnimationComplete, {
|
||||
once: true
|
||||
});
|
||||
resolve();
|
||||
};
|
||||
|
||||
dom.addEventListener(newAnimatedPage, 'animationend', onAnimationComplete, {
|
||||
once: true
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue