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

fix fullscreen button with IE

This commit is contained in:
Luke Pulverenti 2015-05-17 21:27:48 -04:00
parent c5802fc5ab
commit 3114742ab7
18 changed files with 125 additions and 176 deletions

View file

@ -105,7 +105,23 @@
});
}
$(document).on('pageinit', "#supporterPage", function () {
function onSubmit() {
var form = this;
var page = $(form).parents('.page');
if ($('.hfIsActive', page).val() == 'true') {
var currentPlanType = $('.hfPlanType', page).val();
if (currentPlanType != 'Lifetime') {
// Use a regular alert to block the submission process until they hit ok
alert(Globalize.translate('MessageChangeRecurringPlanConfirm'));
}
}
}
$(document).on('pageinitdepends', "#supporterPage", function () {
var page = this;
@ -156,7 +172,11 @@
updateSavedDonationAmount(page);
});
}).on('pageshow', "#supporterPage", function () {
RegistrationServices.initSupporterForm(page);
$('.supporterForm').off('submit', onSubmit).on('submit', onSubmit);
}).on('pageshown', "#supporterPage", function () {
var page = this;
@ -174,26 +194,4 @@
loadUserInfo(page);
});
window.SupporterPage = {
onSubmit: function () {
var form = this;
var page = $(form).parents('.page');
if ($('.hfIsActive', page).val() == 'true') {
var currentPlanType = $('.hfPlanType', page).val();
if (currentPlanType != 'Lifetime') {
// Use a regular alert to block the submission process until they hit ok
alert(Globalize.translate('MessageChangeRecurringPlanConfirm'));
}
}
}
};
})();