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

set context with sync services

This commit is contained in:
Luke Pulverenti 2015-03-08 13:34:02 -04:00
parent 90804e8145
commit 2ad634f791
7 changed files with 36 additions and 6 deletions

View file

@ -265,6 +265,26 @@
});
}).on('pagebeforeshow pageinit', "#addPluginPage", function () {
var page = this;
var context = getParameterByName('context');
if (context == 'sync') {
$('.syncTabs', page).show();
$('.pluginTabs', page).hide();
page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Sync');
Dashboard.setPageTitle(Globalize.translate('TitleSync'));
} else {
$('.syncTabs', page).hide();
$('.pluginTabs', page).show();
page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Plugins');
Dashboard.setPageTitle(Globalize.translate('TitlePlugins'));
}
});
function performInstallation(packageName, guid, updateClass, version) {