mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
update script dependencies
This commit is contained in:
parent
bd8391a61c
commit
b53f6c1d3f
@ -1,4 +1,4 @@
|
||||
(function (window, document, $) {
|
||||
define(['jQuery'], function ($) {
|
||||
|
||||
function getPickerHtml() {
|
||||
|
||||
@ -110,4 +110,4 @@
|
||||
return this.alphaValue('');
|
||||
};
|
||||
|
||||
})(window, document, jQuery);
|
||||
});
|
@ -1,4 +1,4 @@
|
||||
(function ($, document) {
|
||||
define(['jQuery'], function ($) {
|
||||
|
||||
function reloadList(page) {
|
||||
|
||||
@ -105,4 +105,4 @@
|
||||
reloadList(page);
|
||||
});
|
||||
|
||||
})(jQuery, document);
|
||||
});
|
@ -1,4 +1,4 @@
|
||||
(function ($, document, window) {
|
||||
define(['jQuery'], function ($) {
|
||||
|
||||
function getNode(item, folderState, selected) {
|
||||
|
||||
@ -463,4 +463,4 @@
|
||||
setCurrentItemId: setCurrentItemId
|
||||
};
|
||||
|
||||
})(jQuery, document, window);
|
||||
});
|
@ -1,4 +1,4 @@
|
||||
define(['appSettings', 'paper-slider', 'paper-button'], function (appSettings) {
|
||||
define(['appSettings', 'jQuery', 'paper-slider', 'paper-button'], function (appSettings, $) {
|
||||
|
||||
function getDeviceProfile(serverAddress, deviceId, item, startPositionTicks, maxBitrate, mediaSourceId, audioStreamIndex, subtitleStreamIndex) {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
(function ($, document) {
|
||||
define(['libraryBrowser'], function (libraryBrowser) {
|
||||
|
||||
function enableScrollX() {
|
||||
return browserInfo.mobile && AppInfo.enableAppLayouts;
|
||||
@ -31,8 +31,7 @@
|
||||
|
||||
function loadSection(elem, userId, topParentId, section, isSingleSection) {
|
||||
|
||||
var screenWidth = $(window).width();
|
||||
|
||||
var screenWidth = window.innerWidth;
|
||||
var options = {
|
||||
|
||||
SortBy: "SortName",
|
||||
@ -88,7 +87,7 @@
|
||||
html += '<div class="itemsContainer">';
|
||||
}
|
||||
|
||||
html += LibraryBrowser.getPosterViewHtml({
|
||||
html += libraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
preferThumb: section.preferThumb,
|
||||
shape: section.shape,
|
||||
@ -109,7 +108,7 @@
|
||||
|
||||
elem.innerHTML = html;
|
||||
ImageLoader.lazyChildren(elem);
|
||||
$(elem).createCardMenus();
|
||||
libraryBrowser.createCardMenus(elem);
|
||||
});
|
||||
}
|
||||
|
||||
@ -163,7 +162,7 @@
|
||||
Promise.all(promises).then(function () {
|
||||
Dashboard.hideLoadingMsg();
|
||||
|
||||
LibraryBrowser.setLastRefreshed(page);
|
||||
libraryBrowser.setLastRefreshed(page);
|
||||
});
|
||||
}
|
||||
|
||||
@ -171,7 +170,7 @@
|
||||
|
||||
if (window.HomePage) {
|
||||
window.HomePage.renderFavorites = function (page, tabContent) {
|
||||
if (LibraryBrowser.needsRefresh(tabContent)) {
|
||||
if (libraryBrowser.needsRefresh(tabContent)) {
|
||||
loadSections(tabContent, Dashboard.getCurrentUserId());
|
||||
}
|
||||
};
|
||||
@ -186,7 +185,7 @@
|
||||
|
||||
var page = this;
|
||||
|
||||
if (LibraryBrowser.needsRefresh(page)) {
|
||||
if (libraryBrowser.needsRefresh(page)) {
|
||||
loadSections(page, Dashboard.getCurrentUserId());
|
||||
}
|
||||
});
|
||||
@ -195,4 +194,4 @@
|
||||
render: loadSections
|
||||
};
|
||||
|
||||
})(jQuery, document);
|
||||
});
|
@ -1,4 +1,4 @@
|
||||
(function () {
|
||||
define(['jQuery'], function ($) {
|
||||
|
||||
var supportsTextTracks;
|
||||
var hlsPlayer;
|
||||
@ -781,4 +781,4 @@
|
||||
};
|
||||
}
|
||||
|
||||
})();
|
||||
});
|
@ -84,7 +84,7 @@
|
||||
|
||||
values = JSON.parse(values);
|
||||
|
||||
return $.extend(query, values);
|
||||
return Object.assign(query, values);
|
||||
}
|
||||
|
||||
return query;
|
||||
@ -492,7 +492,7 @@
|
||||
|
||||
if (window.location.href.toLowerCase().indexOf(url.toLowerCase()) != -1) {
|
||||
|
||||
afterNavigate.call($($.mobile.activePage)[0]);
|
||||
afterNavigate.call($.mobile.activePage);
|
||||
} else {
|
||||
$(document).one('pagebeforeshow', '.page', afterNavigate);
|
||||
Dashboard.navigate(url);
|
||||
@ -1581,7 +1581,7 @@
|
||||
return !item.CollectionType && invalidTypes.indexOf(item.Type) == -1 && item.MediaType != 'Photo';
|
||||
},
|
||||
|
||||
enableSync: function(item, user) {
|
||||
enableSync: function (item, user) {
|
||||
if (AppInfo.isNativeApp && !Dashboard.capabilities().SupportsSync) {
|
||||
return false;
|
||||
}
|
||||
@ -2805,11 +2805,6 @@
|
||||
|
||||
},
|
||||
|
||||
openViewPanel: function (btn, className) {
|
||||
|
||||
$('.' + className, jQuery(btn).parents('.page')).removeClass('hide').panel('toggle');
|
||||
},
|
||||
|
||||
getQueryPagingHtml: function (options) {
|
||||
|
||||
var startIndex = options.startIndex;
|
||||
@ -2862,14 +2857,6 @@
|
||||
html += '<paper-icon-button class="btnSort" title="' + Globalize.translate('ButtonSort') + '" icon="sort-by-alpha"></paper-icon-button>';
|
||||
}
|
||||
|
||||
if (options.viewButton) {
|
||||
|
||||
//html += '<paper-button raised class="subdued notext"><iron-icon icon="view-comfy"></iron-icon></paper-button>';
|
||||
var viewPanelClass = options.viewPanelClass || 'viewPanel';
|
||||
var title = options.viewIcon == 'filter-list' ? Globalize.translate('ButtonFilter') : Globalize.translate('ButtonMenu');
|
||||
html += '<paper-icon-button title="' + title + '" icon="' + (options.viewIcon || AppInfo.moreIcon) + '" onclick="LibraryBrowser.openViewPanel(this, \'' + viewPanelClass + '\');"></paper-icon-button>';
|
||||
}
|
||||
|
||||
if (options.filterButton) {
|
||||
|
||||
html += '<paper-icon-button class="btnFilter" title="' + Globalize.translate('ButtonFilter') + '" icon="filter-list"></paper-icon-button>';
|
||||
@ -2953,11 +2940,11 @@
|
||||
|
||||
// Seeing an issue in Firefox and IE where it's initially visible in the bottom right, then moves to the center
|
||||
var delay = browserInfo.animate ? 0 : 100;
|
||||
setTimeout(function() {
|
||||
setTimeout(function () {
|
||||
paperDialogHelper.open(dlg);
|
||||
}, delay);
|
||||
|
||||
$('.groupSortBy', dlg).on('iron-select', function () {
|
||||
dlg.querySelector('.groupSortBy').addEventListener('iron-select', function () {
|
||||
|
||||
var newValue = this.selected.replace('_', ',');
|
||||
var changed = options.query.SortBy != newValue;
|
||||
@ -2970,7 +2957,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
$('.groupSortOrder', dlg).on('iron-select', function () {
|
||||
dlg.querySelector('.groupSortOrder').addEventListener('iron-select', function () {
|
||||
|
||||
var newValue = this.selected;
|
||||
var changed = options.query.SortOrder != newValue;
|
||||
|
@ -1,4 +1,4 @@
|
||||
(function ($, document, window) {
|
||||
define(['jQuery'], function ($) {
|
||||
|
||||
function reload(page, providerId) {
|
||||
|
||||
@ -75,4 +75,4 @@
|
||||
reload(page, providerId);
|
||||
});
|
||||
|
||||
})(jQuery, document, window);
|
||||
});
|
@ -1,4 +1,4 @@
|
||||
(function ($, document, window) {
|
||||
define(['jQuery'], function ($) {
|
||||
|
||||
function reload(page, providerId) {
|
||||
|
||||
@ -87,4 +87,4 @@
|
||||
reload(page, providerId);
|
||||
});
|
||||
|
||||
})(jQuery, document, window);
|
||||
});
|
@ -1,4 +1,4 @@
|
||||
(function ($, document, window) {
|
||||
define(['jQuery'], function ($) {
|
||||
|
||||
function reload(page, providerId) {
|
||||
|
||||
@ -110,4 +110,4 @@
|
||||
reload(page, providerId);
|
||||
});
|
||||
|
||||
})(jQuery, document, window);
|
||||
});
|
@ -1,4 +1,4 @@
|
||||
define(['appSettings'], function (appSettings) {
|
||||
define(['appSettings', 'jQuery'], function (appSettings, $) {
|
||||
|
||||
function createVideoPlayer(self) {
|
||||
|
||||
|
@ -1598,7 +1598,7 @@ define(['appSettings', 'userSettings', 'appStorage'], function (appSettings, use
|
||||
NowPlayingItem: state.NowPlayingItem
|
||||
};
|
||||
|
||||
info = $.extend(info, state.PlayState);
|
||||
info = Object.assign(info, state.PlayState);
|
||||
console.log('repeat mode ' + info.RepeatMode);
|
||||
ApiClient.reportPlaybackProgress(info);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
define([], function () {
|
||||
define(['jQuery'], function ($) {
|
||||
|
||||
var currentPlayer;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
define(['appStorage'], function (appStorage) {
|
||||
define(['appStorage', 'jQuery'], function (appStorage, $) {
|
||||
|
||||
var data = {};
|
||||
function getPageData() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
(function (window, document, $) {
|
||||
define(['jQuery'], function ($) {
|
||||
|
||||
window.RatingDialog = function (page) {
|
||||
|
||||
@ -136,4 +136,4 @@
|
||||
}
|
||||
};
|
||||
|
||||
})(window, document, jQuery);
|
||||
});
|
@ -1,4 +1,4 @@
|
||||
define([], function () {
|
||||
define(['jQuery'], function ($) {
|
||||
|
||||
var currentDialogOptions;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
define(['appStorage'], function (appStorage) {
|
||||
define(['appStorage', 'jQuery'], function (appStorage, $) {
|
||||
|
||||
$.fn.taskButton = function (options) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user