mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add animation delay
This commit is contained in:
parent
33b01d778c
commit
7cd7846e02
1 changed files with 8 additions and 5 deletions
|
@ -2884,13 +2884,16 @@
|
||||||
document.body.appendChild(dlg);
|
document.body.appendChild(dlg);
|
||||||
|
|
||||||
var fireCallbackOnClose = false;
|
var fireCallbackOnClose = false;
|
||||||
|
var delay = browserInfo.animate ? 0 : 100;
|
||||||
|
|
||||||
paperDialogHelper.open(dlg).then(function() {
|
setTimeout(function() {
|
||||||
|
paperDialogHelper.open(dlg).then(function () {
|
||||||
|
|
||||||
if (options.callback && fireCallbackOnClose) {
|
if (options.callback && fireCallbackOnClose) {
|
||||||
options.callback();
|
options.callback();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}, delay);
|
||||||
|
|
||||||
$('.groupSortBy', dlg).on('iron-select', function () {
|
$('.groupSortBy', dlg).on('iron-select', function () {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue