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

support min version

This commit is contained in:
Luke Pulverenti 2016-02-21 17:17:38 -05:00
parent 49a57849a4
commit 6e310821b1
6 changed files with 53 additions and 10 deletions

View file

@ -53,6 +53,13 @@
loadMode(page, 'welcome');
}
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:
{
Dashboard.alert({

View file

@ -24,6 +24,13 @@
Dashboard.navigate('login.html?serverid=' + result.Servers[0].Id);
}
break;
case MediaBrowser.ConnectionState.ServerUpdateNeeded:
{
Dashboard.alert({
message: Globalize.translate('ServerUpdateNeeded', '<a href="https://emby.media">https://emby.media</a>')
});
}
break;
default:
showServerConnectionFailure();
break;
@ -34,14 +41,10 @@
function showServerConnectionFailure() {
// Need the timeout because jquery mobile will not show a popup while another is in process of closing
setTimeout(function () {
Dashboard.alert({
message: Globalize.translate("MessageUnableToConnectToServer"),
title: Globalize.translate("HeaderConnectionFailure")
});
}, 300);
}
function getServerHtml(server) {

View file

@ -1640,7 +1640,7 @@ var AppInfo = {};
Dashboard.showLoadingMsg();
return ConnectionManager.connectToServer(server).then(function (result) {
Dashboard.showLoadingMsg();
Dashboard.hideLoadingMsg();
if (result.State == MediaBrowser.ConnectionState.SignedIn) {
window.ApiClient = result.ApiClient;

View file

@ -121,3 +121,34 @@
};
$(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);
});
})();

View file

@ -48,6 +48,7 @@
"ButtonSelectView": "Select view",
"TitleSync": "Sync",
"OptionAutomatic": "Auto",
"ServerUpdateNeeded": "This Emby Server needs to be updated. To download the latest version, please visit {0}",
"HeaderSelectDate": "Select Date",
"ButtonIdentify": "Identify",
"HeaderIdentifyItem": "Identify Item",

View file

@ -49,6 +49,7 @@
"TitleSync": "Sync",
"OptionAutomatic": "Auto",
"HeaderSelectDate": "Select Date",
"ServerUpdateNeeded": "This Emby Server needs to be updated. To download the latest version, please visit {0}",
"ButtonIdentify": "Identify",
"HeaderIdentifyItem": "Identify Item",
"LabelRecurringDonationCanBeCancelledHelp": "Recurring donations can be cancelled at any time from within your PayPal account.",