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:
parent
3534a863be
commit
bea9f41675
2 changed files with 16 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
||||||
define(['fetchHelper', 'jQuery'], function (fetchHelper, $) {
|
define(['fetchHelper', 'jQuery', 'registrationservices'], function (fetchHelper, $, registrationServices) {
|
||||||
|
|
||||||
function load(page) {
|
function load(page) {
|
||||||
Dashboard.showLoadingMsg();
|
Dashboard.showLoadingMsg();
|
||||||
|
@ -158,6 +158,13 @@
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onSupporterLinkClick(e) {
|
||||||
|
|
||||||
|
registrationServices.showPremiereInfo();
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
}
|
||||||
|
|
||||||
$(document).on('pageinit', "#supporterKeyPage", function () {
|
$(document).on('pageinit', "#supporterKeyPage", function () {
|
||||||
|
|
||||||
var page = this;
|
var page = this;
|
||||||
|
@ -165,7 +172,9 @@
|
||||||
$('#lostKeyForm', this).on('submit', retrieveSupporterKey);
|
$('#lostKeyForm', this).on('submit', retrieveSupporterKey);
|
||||||
$('#linkKeysForm', this).on('submit', SupporterKeyPage.linkSupporterKeys);
|
$('#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 () {
|
}).on('pageshow', "#supporterKeyPage", function () {
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<div id="supporterKeyPage" data-role="page" class="page type-interior withTabs" data-require="jqmcollapsible,scripts/supporterkeypage,emby-input,emby-button">
|
<div id="supporterKeyPage" data-role="page" class="page type-interior withTabs" data-require="emby-collapse,scripts/supporterkeypage,emby-input,emby-button">
|
||||||
|
|
||||||
<div data-role="content">
|
<div data-role="content">
|
||||||
<div class="content-primary">
|
<div class="content-primary">
|
||||||
|
@ -48,9 +48,8 @@
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
<br />
|
<br />
|
||||||
<div data-role="collapsible">
|
<div is="emby-collapse" title="${HeaderForgotKey}">
|
||||||
<h3>${HeaderForgotKey}</h3>
|
<div class="collapseContent">
|
||||||
<div>
|
|
||||||
<form id="lostKeyForm">
|
<form id="lostKeyForm">
|
||||||
<div style="margin: 1em 0;" class="inputContainer">
|
<div style="margin: 1em 0;" class="inputContainer">
|
||||||
<input is="emby-input" type="email" required id="txtEmail" label="${LabelEmailAddress}" />
|
<input is="emby-input" type="email" required id="txtEmail" label="${LabelEmailAddress}" />
|
||||||
|
@ -63,10 +62,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div data-role="collapsible">
|
<div is="emby-collapse" title="${HeaderMultipleKeyLinking}">
|
||||||
<h3>${HeaderMultipleKeyLinking}</h3>
|
<div class="collapseContent">
|
||||||
<div>
|
|
||||||
|
|
||||||
<form id="linkKeysForm">
|
<form id="linkKeysForm">
|
||||||
<p>
|
<p>
|
||||||
${MultipleKeyLinkingHelp}
|
${MultipleKeyLinkingHelp}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue