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

continue jquery removal

This commit is contained in:
Luke Pulverenti 2016-06-02 13:08:25 -04:00
parent 1fba8135db
commit 3128b05f14
15 changed files with 115 additions and 103 deletions

View file

@ -76,7 +76,7 @@ define(['browser'], function (browser) {
}
if (currentPage) {
if (newViewInfo.hasScript) {
if (newViewInfo.hasScript && window.$) {
// TODO: figure this out without jQuery
view = $(view).appendTo(mainAnimatedPages)[0];
mainAnimatedPages.removeChild(currentPage);
@ -84,7 +84,7 @@ define(['browser'], function (browser) {
mainAnimatedPages.replaceChild(view, currentPage);
}
} else {
if (newViewInfo.hasScript) {
if (newViewInfo.hasScript && window.$) {
// TODO: figure this out without jQuery
view = $(view).appendTo(mainAnimatedPages)[0];
} else {