From fd459b0744a40b53f25c3d0813f0be07dbc81bc0 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 3 Apr 2015 11:52:49 -0400 Subject: [PATCH] restore model properties --- dashboard-ui/appservices.html | 2 +- dashboard-ui/css/librarybrowser.css | 3 -- dashboard-ui/dashboard.html | 11 +------ dashboard-ui/scripts/dashboardpage.js | 34 +++++++++++++++------ dashboard-ui/scripts/userparentalcontrol.js | 2 +- dashboard-ui/syncactivity.html | 2 +- dashboard-ui/userprofiles.html | 2 +- 7 files changed, 30 insertions(+), 26 deletions(-) diff --git a/dashboard-ui/appservices.html b/dashboard-ui/appservices.html index cbbe176112..386f863549 100644 --- a/dashboard-ui/appservices.html +++ b/dashboard-ui/appservices.html @@ -32,7 +32,7 @@
${HeaderAvailableServices}
- diff --git a/dashboard-ui/scripts/dashboardpage.js b/dashboard-ui/scripts/dashboardpage.js index 9538dc7dc8..827f54389c 100644 --- a/dashboard-ui/scripts/dashboardpage.js +++ b/dashboard-ui/scripts/dashboardpage.js @@ -24,12 +24,6 @@ Dashboard.getPluginSecurityInfo().done(function (pluginSecurityInfo) { - if (pluginSecurityInfo.IsMBSupporter) { - $('.supporterPromotion', page).hide(); - } else { - $('.supporterPromotion', page).show(); - } - DashboardPage.renderSupporterIcon(page, pluginSecurityInfo); }); @@ -625,7 +619,7 @@ return ""; } - if (clientLowered == "media browser theater") { + if (clientLowered == "emby theater") { return ""; } @@ -1288,7 +1282,7 @@ $(document).on('pagebeforeshow', "#dashboardPage", DashboardPage.onPageShow) $('.tourButtonText', elem).html(Globalize.translate('ButtonTakeTheTourToSeeWhatsNew')); } else { - + $('.tourHeader', elem).html(Globalize.translate('HeaderWelcomeToProjectServerDashboard')); $('.tourButtonText', elem).html(Globalize.translate('ButtonTakeTheTour')); } @@ -1338,4 +1332,26 @@ $(document).on('pagebeforeshow', "#dashboardPage", DashboardPage.onPageShow) }); -})(jQuery, document, window); \ No newline at end of file +})(jQuery, document, window); + +(function () { + + $(document).on('pagebeforeshow', ".type-interior", function () { + + var page = this; + + Dashboard.getPluginSecurityInfo().done(function (pluginSecurityInfo) { + + if (!$('.staticSupporterPromotion', page).length) { + $('.supporterPromotion', page).remove(); + + if (!pluginSecurityInfo.IsMBSupporter) { + $('.content-primary', page).append('
' + Globalize.translate('HeaderSupportTheTeam') + '
' + Globalize.translate('TextEnjoyBonusFeatures') + '
'); + } + } + + }); + + }); + +})(); \ No newline at end of file diff --git a/dashboard-ui/scripts/userparentalcontrol.js b/dashboard-ui/scripts/userparentalcontrol.js index c1e54a3f6b..c57f19e220 100644 --- a/dashboard-ui/scripts/userparentalcontrol.js +++ b/dashboard-ui/scripts/userparentalcontrol.js @@ -165,7 +165,7 @@ itemHtml += '
  • '; itemHtml += ''; - itemHtml += '

    ' + a.DayOfWeek + '

    '; + itemHtml += '

    ' + Globalize.translate('Option' + a.DayOfWeek) + '

    '; itemHtml += '

    ' + getDisplayTime(a.StartHour) + ' - ' + getDisplayTime(a.EndHour) + '

    '; itemHtml += '
    '; diff --git a/dashboard-ui/syncactivity.html b/dashboard-ui/syncactivity.html index 179fa99584..1b2f90b4be 100644 --- a/dashboard-ui/syncactivity.html +++ b/dashboard-ui/syncactivity.html @@ -20,7 +20,7 @@
    -