1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
This commit is contained in:
Cameron 2020-08-02 19:13:13 +01:00
parent b5c1cbb5b3
commit 404bdc12df
6 changed files with 11 additions and 15 deletions

View file

@ -19,8 +19,6 @@ import 'css!./imageeditor';
const enableFocusTransform = !browser.slow && !browser.edge;
loading = loading.default || loading;
let currentItem;
let hasChanges = false;

View file

@ -3,8 +3,6 @@ import loading from 'loading';
import globalize from 'globalize';
import 'emby-button';
loading = loading.default || loading;
function loadPage(page, config) {
$('.liveTvSettingsForm', page).show();
$('.noLiveTvServices', page).hide();

View file

@ -82,7 +82,7 @@ import 'emby-itemscontainer';
}
itemsContainer.innerHTML = '';
}
};
const reloadItems = (page) => {
loading.show();
@ -182,12 +182,12 @@ import 'emby-itemscontainer';
autoFocuser.autoFocus(tabContent);
});
});
}
};
const updateFilterControls = (tabContent) => {
const query = getQuery();
this.alphaPicker.value(query.NameStartsWithOrGreater);
}
};
let savedQueryKey;
let pageData;
@ -281,7 +281,7 @@ import 'emby-itemscontainer';
});
tabContent.querySelector('.btnPlayAll').addEventListener('click', playAll);
tabContent.querySelector('.btnShuffle').addEventListener('click', shuffle);
}
};
initPage(tabContent);
onViewStyleChange();

View file

@ -51,7 +51,7 @@ import 'emby-itemscontainer';
}
return context.savedQueryKey;
}
};
const onViewStyleChange = () => {
const viewStyle = this.getCurrentViewStyle();
@ -66,7 +66,7 @@ import 'emby-itemscontainer';
}
itemsContainer.innerHTML = '';
}
};
const reloadItems = (page) => {
loading.show();
@ -165,12 +165,12 @@ import 'emby-itemscontainer';
autoFocuser.autoFocus(tabContent);
});
});
}
};
const updateFilterControls = (tabContent) => {
const query = getQuery(tabContent);
this.alphaPicker.value(query.NameStartsWithOrGreater);
}
};
const data = {};
let isLoading = false;
@ -229,7 +229,7 @@ import 'emby-itemscontainer';
onViewStyleChange();
reloadItems(tabContent);
});
}
};
initPage(tabContent);
onViewStyleChange();

View file

@ -96,7 +96,7 @@ import loading from 'loading';
autoFocuser.autoFocus(context);
});
});
}
};
function fullyReload() {
this.preRender();

View file

@ -339,7 +339,7 @@ import 'flexStyles';
callback(controller);
});
}
};
function preLoadTab(page, index) {
getTabController(page, index, function (controller) {