mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
#382 Better feedback on supporter key entry
This commit is contained in:
parent
d2077f43d4
commit
1fbfb1d548
3 changed files with 18 additions and 3 deletions
|
@ -272,6 +272,10 @@ form, .readOnlyContent {
|
||||||
color: #fff!important;
|
color: #fff!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.invalidEntry {
|
||||||
|
background-color: lightpink!important;
|
||||||
|
}
|
||||||
|
|
||||||
/* Tabs (e.g. advanced metadata page) */
|
/* Tabs (e.g. advanced metadata page) */
|
||||||
.localnav {
|
.localnav {
|
||||||
margin-bottom: 40px!important;
|
margin-bottom: 40px!important;
|
||||||
|
|
|
@ -20,6 +20,13 @@
|
||||||
} else {
|
} else {
|
||||||
$('.supporterOnly', page).hide();
|
$('.supporterOnly', page).hide();
|
||||||
}
|
}
|
||||||
|
if ((info.LegacyKey || info.SupporterKey) && !info.IsMBSupporter) {
|
||||||
|
$('#txtSupporterKey', page).addClass("invalidEntry");
|
||||||
|
$('.notSupporter', page).show();
|
||||||
|
} else {
|
||||||
|
$('#txtSupporterKey', page).removeClass("invalidEntry");
|
||||||
|
$('.notSupporter', page).hide();
|
||||||
|
}
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -40,8 +47,7 @@
|
||||||
ApiClient.updatePluginSecurityInfo(info).done(function () {
|
ApiClient.updatePluginSecurityInfo(info).done(function () {
|
||||||
Dashboard.resetPluginSecurityInfo();
|
Dashboard.resetPluginSecurityInfo();
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
SupporterPage.load();
|
SupporterKeyPage.load();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -26,6 +26,11 @@
|
||||||
<strong>After becoming a supporter, you will be emailed a Supporter Key. Simply copy and paste that key into this field and start
|
<strong>After becoming a supporter, you will be emailed a Supporter Key. Simply copy and paste that key into this field and start
|
||||||
enjoying everything the community has developed for Media Browser. <em>Only MB 3 Supporter Keys are valid here</em></strong>
|
enjoying everything the community has developed for Media Browser. <em>Only MB 3 Supporter Keys are valid here</em></strong>
|
||||||
</div>
|
</div>
|
||||||
|
<p style="display: none; padding: 1em; border-radius: 5px; font-weight: normal;" class="ui-bar-e notSupporter">
|
||||||
|
<strong>MB3 Key Missing or Invalid</strong> - in order for any premium content to be registered, you must also be a MB3 Supporter.
|
||||||
|
Please <a href="supporter.html">donate</a> and support the continued development of the core product. Thank you.
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 40px; margin-bottom: 40px">
|
<div style="margin-top: 40px; margin-bottom: 40px">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue