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

update polymer components

This commit is contained in:
Luke Pulverenti 2015-10-29 19:23:43 -04:00
parent 39b96c14d1
commit 15b68f5f4b
17 changed files with 1592 additions and 1227 deletions

View file

@ -77,27 +77,38 @@
amt: price
};
var promise;
if (enteredEmail) {
postData.email = enteredEmail;
postData.storeId = enteredEmail;
postData.feature = "MBSClubMonthly";
promise = ApiClient.ajax({
type: "POST",
url: ApiClient.getUrl("Appstore/Register"),
data: {
Parameters: JSON.stringify(postData)
}
});
} else {
promise = ApiClient.ajax({
type: "POST",
url: "http://mb3admin.com/admin/service/appstore/register",
data: JSON.stringify(postData),
contentType: "application/json"
});
}
ApiClient.ajax({
type: "POST",
url: ApiClient.getUrl("Appstore/Register"),
data: {
Parameters: JSON.stringify(postData)
}
}).done(function () {
promise.done(function () {
callback(true, product);
}).fail(function (e) {
if (e.status == 402) {
alert('validate fail - expired');
callback(false, {
code: store.PURCHASE_EXPIRED,
@ -105,6 +116,7 @@
message: "Subscription Expired"
}
});
} else {
alert('validate fail - other');
@ -155,7 +167,7 @@
if (requiresVerification) {
//product.verify();
if (product.owned) {
alert('sub owned!');
//alert('sub owned!');
}
} else {
product.finish();