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

update app buttons

This commit is contained in:
Luke Pulverenti 2015-01-11 13:36:26 -05:00
parent f188ee8847
commit e2384f3087
10 changed files with 46 additions and 22 deletions

View file

@ -1249,7 +1249,7 @@ $(document).on('pagebeforeshow', "#dashboardPage", DashboardPage.onPageShow)
(function ($, document, window) {
var welcomeDismissValue = '8';
var welcomeDismissValue = '10';
var welcomeTourKey = 'welcomeTour';
function dismissWelcome(page, userId) {
@ -1272,7 +1272,19 @@ $(document).on('pagebeforeshow', "#dashboardPage", DashboardPage.onPageShow)
if (result.CustomPrefs[welcomeTourKey] == welcomeDismissValue) {
$('.welcomeMessage', page).hide();
} else {
$('.welcomeMessage', page).show();
var elem = $('.welcomeMessage', page).show();
if (result.CustomPrefs[welcomeTourKey]) {
$('.tourHeader', elem).html(Globalize.translate('HeaderWelcomeBack'));
$('.tourButtonText', elem).html(Globalize.translate('ButtonTakeTheTourToSeeWhatsNew'));
} else {
$('.tourHeader', elem).html(Globalize.translate('HeaderWelcomeToMediaBrowserServerDashboard'));
$('.tourButtonText', elem).html(Globalize.translate('ButtonTakeTheTour'));
}
}
});
}