mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update schedules direct mapping
This commit is contained in:
parent
bd43e4e167
commit
c97c4ac4e3
10 changed files with 126 additions and 80 deletions
8
dashboard-ui/cordova/registrationservices.js
vendored
8
dashboard-ui/cordova/registrationservices.js
vendored
|
@ -13,8 +13,6 @@
|
|||
|
||||
function validateFeature(feature, deferred) {
|
||||
|
||||
var id = IapManager.getStoreFeatureId(feature);
|
||||
|
||||
if (validatedFeatures.indexOf(feature) != -1) {
|
||||
deferred.resolve();
|
||||
return;
|
||||
|
@ -23,7 +21,7 @@
|
|||
var info = IapManager.getProductInfo(feature) || {};
|
||||
|
||||
if (info.owned) {
|
||||
notifyServer(id);
|
||||
notifyServer(info.id);
|
||||
validatedFeatures.push(feature);
|
||||
deferred.resolve();
|
||||
return;
|
||||
|
@ -31,7 +29,7 @@
|
|||
|
||||
var unlockableProductInfo = IapManager.isPurchaseAvailable(feature) ? {
|
||||
enableAppUnlock: IapManager.isPurchaseAvailable(feature),
|
||||
id: id,
|
||||
id: info.id,
|
||||
price: info.price,
|
||||
feature: feature
|
||||
|
||||
|
@ -211,7 +209,7 @@
|
|||
$('.btnRestorePurchase', elem).on('click', function () {
|
||||
|
||||
isCancelled = false;
|
||||
IapManager.restorePurchase(info.feature);
|
||||
IapManager.restorePurchase();
|
||||
});
|
||||
|
||||
$(elem).on('iron-overlay-closed', function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue