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

plugin catalog style and filter fixes

This commit is contained in:
Luke Pulverenti 2013-04-11 12:11:04 -04:00
parent 49ce11e15c
commit 78bf84dcee
2 changed files with 21 additions and 15 deletions

View file

@ -80,40 +80,44 @@
Dashboard.hideLoadingMsg();
}
function selectTab(elem) {
function selectTab(elem, page) {
$("#pluginTabs a").removeClass("ui-btn-active");
$(elem).addClass("ui-btn-active");
query.TargetSystems = $(elem).attr("rel");
reloadList($.mobile.activePage);
reloadList(page);
}
$(document).on('pageinit', "#pluginCatalogPage", function () {
var page = this;
$('.chkPremiumFilter', this).on('change', function () {
$('.chkPremiumFilter', page).on('change', function () {
if (this.checked) {
query.IsPremium = true;
} else {
query.IsPremium = null;
}
reloadList(page);
});
$('#pluginTabs a', this).each(function(){
$('#pluginTabs a', page).each(function () {
$(this).on('click', function () {
selectTab(this);
selectTab(this, page);
});
});
}).on('pageshow', "#pluginCatalogPage", function () {
selectTab($("#pluginTabs a.ui-btn-active"));
var page = this;
selectTab($("#pluginTabs a.ui-btn-active"), page);
// Reset form values using the last used query
$('.chkPremiumFilter', this).each(function () {
$('.chkPremiumFilter', page).each(function () {
var filters = query.IsPremium || false;