Skip to content

Commit

Permalink
Merge pull request jellyfin#1637 from jellyfin/legacy
Browse files Browse the repository at this point in the history
Remove legacy jquery extensions
  • Loading branch information
dkanada committed Jul 24, 2020
2 parents ab25204 + 1ddd395 commit 0afe858
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 31 deletions.
8 changes: 0 additions & 8 deletions src/components/viewContainer.js
Expand Up @@ -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];
Expand Down
12 changes: 0 additions & 12 deletions src/legacy/fnchecked.js

This file was deleted.

6 changes: 0 additions & 6 deletions src/legacy/selectmenu.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/scripts/site.js
Expand Up @@ -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);
Expand Down

0 comments on commit 0afe858

Please sign in to comment.