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

added new cabac value

This commit is contained in:
Luke Pulverenti 2014-10-23 00:26:01 -04:00
parent ab4fd843d3
commit f2358f0a65
15 changed files with 310 additions and 279 deletions

View file

@ -322,12 +322,42 @@
}).done(function (result) {
$('#popupInvite').popup('close');
loadData(page);
Dashboard.hideLoadingMsg();
showNewUserInviteMessage(page, result);
});
}
function showNewUserInviteMessage(page, result) {
if (!result.IsNewUserInvitation && !result.IsPending) {
// It was immediately approved
loadData(page);
return;
}
var message = result.IsNewUserInvitation ?
Globalize.translate('MessageInvitationSentToNewUser', result.GuestDisplayName) :
Globalize.translate('MessageInvitationSentToUser', result.GuestDisplayName);
// Need a timeout because jquery mobile will not show a popup while a previous one is in the act of closing
setTimeout(function () {
Dashboard.alert({
message: message,
title: Globalize.translate('HeaderInvitationSent'),
callback: function () {
loadData(page);
}
});
}, 300);
}
function showInvitePopup(page) {
$('#popupInvite', page).popup('open');