mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
remove legacy jquery extensions
This commit is contained in:
parent
baa6c65946
commit
1ddd3958c0
4 changed files with 0 additions and 31 deletions
|
@ -43,14 +43,6 @@ define(['browser', 'dom', 'layoutManager', 'css!components/viewManager/viewConta
|
|||
var newView = newViewInfo.elem;
|
||||
var modulesToLoad = [];
|
||||
|
||||
if (newViewInfo.hasjQuerySelect) {
|
||||
modulesToLoad.push('legacySelectMenu');
|
||||
}
|
||||
|
||||
if (newViewInfo.hasjQueryChecked) {
|
||||
modulesToLoad.push('fnchecked');
|
||||
}
|
||||
|
||||
return new Promise(function (resolve) {
|
||||
require(modulesToLoad, function () {
|
||||
var currentPage = allPages[pageIndex];
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
define(['jQuery'], function($) {
|
||||
'use strict';
|
||||
$.fn.checked = function(value) {
|
||||
return !0 === value || !1 === value ? $(this).each(function() {
|
||||
this.checked = value;
|
||||
}) : this.length && this[0].checked;
|
||||
};
|
||||
|
||||
$.fn.checkboxradio = function() {
|
||||
return this;
|
||||
};
|
||||
});
|
|
@ -1,6 +0,0 @@
|
|||
define(['jQuery'], function($) {
|
||||
'use strict';
|
||||
$.fn.selectmenu = function() {
|
||||
return this;
|
||||
};
|
||||
});
|
|
@ -734,11 +734,6 @@ var AppInfo = {};
|
|||
define('cardStyle', ['css!' + componentsPath + '/cardbuilder/card'], returnFirstDependency);
|
||||
define('flexStyles', ['css!assets/css/flexstyles'], returnFirstDependency);
|
||||
|
||||
// define legacy features
|
||||
// TODO delete the rest of these
|
||||
define('fnchecked', ['legacy/fnchecked'], returnFirstDependency);
|
||||
define('legacySelectMenu', ['legacy/selectmenu'], returnFirstDependency);
|
||||
|
||||
// there are several objects that need to be instantiated
|
||||
// TODO find a better way to do this
|
||||
define('appFooter', [componentsPath + '/appFooter/appFooter'], returnFirstDependency);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue