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

update premiere page

This commit is contained in:
Luke Pulverenti 2016-07-05 14:11:28 -04:00
parent 3534a863be
commit bea9f41675
2 changed files with 16 additions and 10 deletions

View file

@ -1,4 +1,4 @@
define(['fetchHelper', 'jQuery'], function (fetchHelper, $) {
define(['fetchHelper', 'jQuery', 'registrationservices'], function (fetchHelper, $, registrationServices) {
function load(page) {
Dashboard.showLoadingMsg();
@ -158,6 +158,13 @@
}];
}
function onSupporterLinkClick(e) {
registrationServices.showPremiereInfo();
e.preventDefault();
e.stopPropagation();
}
$(document).on('pageinit', "#supporterKeyPage", function () {
var page = this;
@ -165,7 +172,9 @@
$('#lostKeyForm', this).on('submit', retrieveSupporterKey);
$('#linkKeysForm', this).on('submit', SupporterKeyPage.linkSupporterKeys);
$('.benefits', page).html(Globalize.translate('HeaderSupporterBenefit', '<a href="http://emby.media/premiere" target="_blank">', '</a>'));
page.querySelector('.benefits').innerHTML = Globalize.translate('HeaderSupporterBenefit', '<a class="lnkPremiere" href="http://emby.media/premiere" target="_blank">', '</a>');
page.querySelector('.lnkPremiere').addEventListener('click', onSupporterLinkClick);
}).on('pageshow', "#supporterKeyPage", function () {