mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update dialogs
This commit is contained in:
parent
749d9ba550
commit
a048a3c69a
4 changed files with 18 additions and 8 deletions
|
@ -16,12 +16,12 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"version": "1.1.75",
|
"version": "1.1.76",
|
||||||
"_release": "1.1.75",
|
"_release": "1.1.76",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "1.1.75",
|
"tag": "1.1.76",
|
||||||
"commit": "bc766156397a317445676c829b9b5e9dc058ca8e"
|
"commit": "e7cc31f88846c05eeff160a59e070ff6660e2d29"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
|
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
|
||||||
"_target": "~1.1.5",
|
"_target": "~1.1.5",
|
||||||
|
|
|
@ -100,6 +100,9 @@
|
||||||
}
|
}
|
||||||
animateDialogOpen(dlg);
|
animateDialogOpen(dlg);
|
||||||
|
|
||||||
|
// Undo the auto-focus applied by the native dialog element
|
||||||
|
safeBlur(document.activeElement);
|
||||||
|
|
||||||
if (dlg.getAttribute('data-autofocus') == 'true') {
|
if (dlg.getAttribute('data-autofocus') == 'true') {
|
||||||
focusManager.autoFocus(dlg);
|
focusManager.autoFocus(dlg);
|
||||||
}
|
}
|
||||||
|
@ -118,6 +121,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function safeBlur(el) {
|
||||||
|
if (el && el.blur && el != document.body) {
|
||||||
|
el.blur();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function addBackdropOverlay(dlg) {
|
function addBackdropOverlay(dlg) {
|
||||||
|
|
||||||
var backdrop = document.createElement('div');
|
var backdrop = document.createElement('div');
|
||||||
|
|
|
@ -32,14 +32,14 @@
|
||||||
"web-component-tester": "^4.0.0",
|
"web-component-tester": "^4.0.0",
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polymerelements/iron-icon",
|
"homepage": "https://github.com/PolymerElements/iron-icon",
|
||||||
"_release": "1.0.8",
|
"_release": "1.0.8",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.8",
|
"tag": "v1.0.8",
|
||||||
"commit": "f36b38928849ef3853db727faa8c9ef104d611eb"
|
"commit": "f36b38928849ef3853db727faa8c9ef104d611eb"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/polymerelements/iron-icon.git",
|
"_source": "git://github.com/PolymerElements/iron-icon.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "polymerelements/iron-icon"
|
"_originalSource": "PolymerElements/iron-icon"
|
||||||
}
|
}
|
|
@ -3,7 +3,8 @@
|
||||||
function showMenu(options, successCallback, cancelCallback) {
|
function showMenu(options, successCallback, cancelCallback) {
|
||||||
|
|
||||||
var dlg = paperDialogHelper.createDialog({
|
var dlg = paperDialogHelper.createDialog({
|
||||||
removeOnClose: true
|
removeOnClose: true,
|
||||||
|
autoFocus: false
|
||||||
});
|
});
|
||||||
|
|
||||||
dlg.id = 'dlg' + new Date().getTime();
|
dlg.id = 'dlg' + new Date().getTime();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue