support min version
This commit is contained in:
parent
49a57849a4
commit
6e310821b1
6 changed files with 53 additions and 10 deletions
|
@ -53,6 +53,13 @@
|
||||||
loadMode(page, 'welcome');
|
loadMode(page, 'welcome');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case MediaBrowser.ConnectionState.ServerUpdateNeeded:
|
||||||
|
{
|
||||||
|
Dashboard.alert({
|
||||||
|
message: Globalize.translate('ServerUpdateNeeded', '<a href="https://emby.media">https://emby.media</a>')
|
||||||
|
});
|
||||||
|
}
|
||||||
|
break;
|
||||||
case MediaBrowser.ConnectionState.Unavailable:
|
case MediaBrowser.ConnectionState.Unavailable:
|
||||||
{
|
{
|
||||||
Dashboard.alert({
|
Dashboard.alert({
|
||||||
|
|
|
@ -24,6 +24,13 @@
|
||||||
Dashboard.navigate('login.html?serverid=' + result.Servers[0].Id);
|
Dashboard.navigate('login.html?serverid=' + result.Servers[0].Id);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case MediaBrowser.ConnectionState.ServerUpdateNeeded:
|
||||||
|
{
|
||||||
|
Dashboard.alert({
|
||||||
|
message: Globalize.translate('ServerUpdateNeeded', '<a href="https://emby.media">https://emby.media</a>')
|
||||||
|
});
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
showServerConnectionFailure();
|
showServerConnectionFailure();
|
||||||
break;
|
break;
|
||||||
|
@ -34,14 +41,10 @@
|
||||||
|
|
||||||
function showServerConnectionFailure() {
|
function showServerConnectionFailure() {
|
||||||
|
|
||||||
// Need the timeout because jquery mobile will not show a popup while another is in process of closing
|
Dashboard.alert({
|
||||||
setTimeout(function () {
|
message: Globalize.translate("MessageUnableToConnectToServer"),
|
||||||
Dashboard.alert({
|
title: Globalize.translate("HeaderConnectionFailure")
|
||||||
message: Globalize.translate("MessageUnableToConnectToServer"),
|
});
|
||||||
title: Globalize.translate("HeaderConnectionFailure")
|
|
||||||
});
|
|
||||||
|
|
||||||
}, 300);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getServerHtml(server) {
|
function getServerHtml(server) {
|
||||||
|
|
|
@ -1640,7 +1640,7 @@ var AppInfo = {};
|
||||||
Dashboard.showLoadingMsg();
|
Dashboard.showLoadingMsg();
|
||||||
|
|
||||||
return ConnectionManager.connectToServer(server).then(function (result) {
|
return ConnectionManager.connectToServer(server).then(function (result) {
|
||||||
Dashboard.showLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
|
|
||||||
if (result.State == MediaBrowser.ConnectionState.SignedIn) {
|
if (result.State == MediaBrowser.ConnectionState.SignedIn) {
|
||||||
window.ApiClient = result.ApiClient;
|
window.ApiClient = result.ApiClient;
|
||||||
|
|
|
@ -120,4 +120,35 @@
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$(document).on('pageshow', "#supporterKeyPage", SupporterKeyPage.onPageShow);
|
$(document).on('pageshow', "#supporterKeyPage", SupporterKeyPage.onPageShow);
|
||||||
|
|
||||||
|
(function () {
|
||||||
|
|
||||||
|
function loadUserInfo(page) {
|
||||||
|
|
||||||
|
Dashboard.getPluginSecurityInfo().then(function (info) {
|
||||||
|
|
||||||
|
if (info.IsMBSupporter) {
|
||||||
|
$('.supporterContainer', page).addClass('hide');
|
||||||
|
} else {
|
||||||
|
$('.supporterContainer', page).removeClass('hide');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).on('pageinit', "#supporterKeyPage", function () {
|
||||||
|
|
||||||
|
var page = this;
|
||||||
|
$('#supporterKeyForm').on('submit', SupporterKeyPage.updateSupporterKey);
|
||||||
|
$('#lostKeyForm').on('submit', SupporterKeyPage.retrieveSupporterKey);
|
||||||
|
$('#linkKeysForm').on('submit', SupporterKeyPage.linkSupporterKeys);
|
||||||
|
|
||||||
|
$('.benefits', page).html(Globalize.translate('HeaderSupporterBenefit', '<a href="http://emby.media/premiere" target="_blank">', '</a>'));
|
||||||
|
|
||||||
|
}).on('pageshow', "#supporterKeyPage", function () {
|
||||||
|
|
||||||
|
var page = this;
|
||||||
|
loadUserInfo(page);
|
||||||
|
});
|
||||||
|
|
||||||
|
})();
|
|
@ -48,6 +48,7 @@
|
||||||
"ButtonSelectView": "Select view",
|
"ButtonSelectView": "Select view",
|
||||||
"TitleSync": "Sync",
|
"TitleSync": "Sync",
|
||||||
"OptionAutomatic": "Auto",
|
"OptionAutomatic": "Auto",
|
||||||
|
"ServerUpdateNeeded": "This Emby Server needs to be updated. To download the latest version, please visit {0}",
|
||||||
"HeaderSelectDate": "Select Date",
|
"HeaderSelectDate": "Select Date",
|
||||||
"ButtonIdentify": "Identify",
|
"ButtonIdentify": "Identify",
|
||||||
"HeaderIdentifyItem": "Identify Item",
|
"HeaderIdentifyItem": "Identify Item",
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
"TitleSync": "Sync",
|
"TitleSync": "Sync",
|
||||||
"OptionAutomatic": "Auto",
|
"OptionAutomatic": "Auto",
|
||||||
"HeaderSelectDate": "Select Date",
|
"HeaderSelectDate": "Select Date",
|
||||||
|
"ServerUpdateNeeded": "This Emby Server needs to be updated. To download the latest version, please visit {0}",
|
||||||
"ButtonIdentify": "Identify",
|
"ButtonIdentify": "Identify",
|
||||||
"HeaderIdentifyItem": "Identify Item",
|
"HeaderIdentifyItem": "Identify Item",
|
||||||
"LabelRecurringDonationCanBeCancelledHelp": "Recurring donations can be cancelled at any time from within your PayPal account.",
|
"LabelRecurringDonationCanBeCancelledHelp": "Recurring donations can be cancelled at any time from within your PayPal account.",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue