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

sync updates

This commit is contained in:
Luke Pulverenti 2015-03-17 01:58:29 -04:00
parent e3091927f0
commit 3cd1cab51f
8 changed files with 87 additions and 3 deletions

View file

@ -76,8 +76,7 @@
var keys = new bindKeys(self);
$(window).on("keydown", keys.keyBinding);
$(window).on("keypress keyup", keys.keyPrevent);
$(window).on("keydown", keys.keyBinding).on("keypress keyup", keys.keyPrevent);
self.registerPlayer = function (player) {

View file

@ -68,7 +68,6 @@ var Dashboard = {
}
return;
}
Dashboard.hideLoadingMsg();
if (!Dashboard.suppressAjaxErrors) {

View file

@ -121,3 +121,47 @@
};
$(document).on('pageshow', "#supporterKeyPage", SupporterKeyPage.onPageShow);
(function () {
function loadConnectSupporters(page) {
$('.linkSupporterKeyMessage', page).html(Globalize.translate('MessageLinkYourSupporterKey', 5));
Dashboard.suppressAjaxErrors = true;
ApiClient.ajax({
type: "GET",
url: ApiClient.getUrl('Connect/Supporters'),
dataType: "json",
error: function () {
// Don't show normal dashboard errors
},
enableGlobalAjaxListener: false
}).done(function () {
}).fail(function () {
$('.supporters', page).html('<p>' + Globalize.translate('MessageErrorLoadingSupporterInfo') + '</p>');
}).always(function () {
Dashboard.suppressAjaxErrors = false;
});
}
$(document).on('pageshow', "#supporterKeyPage", function () {
var page = this;
loadConnectSupporters(page);
});
})();

View file

@ -51,6 +51,16 @@
var page = this;
reloadList(page);
Dashboard.getPluginSecurityInfo().done(function (pluginSecurityInfo) {
if (pluginSecurityInfo.IsMBSupporter) {
$('.syncPromotion', page).hide();
} else {
$('.syncPromotion', page).show();
}
});
});
})(jQuery, document);