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

update components

This commit is contained in:
Luke Pulverenti 2016-04-28 23:31:52 -04:00
parent 4f5766509c
commit c6e1a3e747
6 changed files with 15 additions and 17 deletions

View file

@ -16,12 +16,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.2.56",
"_release": "1.2.56",
"version": "1.2.57",
"_release": "1.2.57",
"_resolution": {
"type": "version",
"tag": "1.2.56",
"commit": "1f1194a244b476b500d3fabe85f469b6420182f8"
"tag": "1.2.57",
"commit": "f0449d2fac7a883179fdeefdac1807a41c47dfd5"
},
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "^1.2.0",

View file

@ -24,8 +24,6 @@
function onBackCommand(e) {
if (e.detail.command == 'back') {
inputManager.off(dlg, onBackCommand);
self.closedByBack = true;
closeDialog(dlg);
e.preventDefault();
@ -34,6 +32,9 @@
function onDialogClosed() {
inputManager.off(dlg, onBackCommand);
window.removeEventListener('popstate', onHashChange);
removeBackdrop(dlg);
dlg.classList.remove('opened');
@ -41,9 +42,6 @@
document.body.classList.remove('noScroll');
}
window.removeEventListener('popstate', onHashChange);
inputManager.off(dlg, onBackCommand);
if (!self.closedByBack && isHistoryEnabled(dlg)) {
var state = history.state || {};
if (state.dialogId == hash) {

View file

@ -1,10 +1,10 @@
define(['dialogHelper', 'dialogText', './social-share-kit-1.0.4/dist/js/social-share-kit.min', 'css!./social-share-kit-1.0.4/dist/css/social-share-kit.css'], function (dialogHelper, dialogText) {
define(['dialogHelper', 'layoutManager', 'dialogText', './social-share-kit-1.0.4/dist/js/social-share-kit.min', 'css!./social-share-kit-1.0.4/dist/css/social-share-kit.css'], function (dialogHelper, layoutManager, dialogText) {
function showMenu(options) {
var dlg = dialogHelper.createDialog({
removeOnClose: true,
autoFocus: false
autoFocus: layoutManager.tv
});
dlg.id = 'dlg' + new Date().getTime();