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

add notification services tab

This commit is contained in:
Luke Pulverenti 2015-04-05 23:47:01 -04:00
parent beb21adecf
commit 59eea6f602
8 changed files with 46 additions and 11 deletions

View file

@ -274,27 +274,33 @@
var context = getParameterByName('context');
$('.syncTabs', page).hide();
$('.pluginTabs', page).hide();
$('.livetvTabs', page).hide();
$('.notificationsTabs', page).hide();
if (context == 'sync') {
$('.syncTabs', page).show();
$('.pluginTabs', page).hide();
$('.livetvTabs', page).hide();
page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Sync');
Dashboard.setPageTitle(Globalize.translate('TitleSync'));
}
else if (context == 'livetv') {
$('.syncTabs', page).hide();
$('.pluginTabs', page).hide();
$('.livetvTabs', page).show();
Dashboard.setPageTitle(Globalize.translate('TitleLiveTV'));
page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Live%20TV');
}
else if (context == 'notifications') {
$('.notificationsTabs', page).show();
Dashboard.setPageTitle(Globalize.translate('TitleNotifications'));
page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Notifications');
}
else {
$('.syncTabs', page).hide();
$('.pluginTabs', page).show();
$('.livetvTabs', page).hide();
page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Plugins');
Dashboard.setPageTitle(Globalize.translate('TitlePlugins'));

View file

@ -28,6 +28,9 @@
else if (context == 'livetv') {
categories.push('Live TV');
}
else if (context == 'notifications') {
categories.push('Notifications');
}
return categories;
}
@ -85,6 +88,10 @@
Dashboard.setPageTitle(Globalize.translate('TitleLiveTV'));
page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Live%20TV');
}
else if (context == 'notifications') {
Dashboard.setPageTitle(Globalize.translate('TitleNotifications'));
page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Notifications');
}
}).on('pageshow', "#appServicesPage", function () {

View file

@ -82,7 +82,7 @@
// v4 Id F4EB2E8E
// default receiver chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID
var applicationID = "F4EB2E8E";
var applicationID = "69C59853";
// request session
var sessionRequest = new chrome.cast.SessionRequest(applicationID);

View file

@ -14,7 +14,7 @@
var checkedHtml = isChecked ? ' checked="checked"' : '';
return '<label for="' + id + '">' + u.Name + '</label><input class="' + cssClass + '" type="checkbox" data-itemid="' + u.Id + '" data-mini="true" id="' + id + '"' + checkedHtml + ' />';
return '<label for="' + id + '">' + u.Name + '</label><input class="' + cssClass + '" type="checkbox" data-itemid="' + u.Id + '" id="' + id + '"' + checkedHtml + ' />';
}).join('');