|
|
|
@ -50,7 +50,7 @@
|
|
|
|
|
regStatus += "You are currently registered for this feature";
|
|
|
|
|
} else {
|
|
|
|
|
if (new Date(pkg.expDate).getTime() < new Date(1970, 1, 1).getTime()) {
|
|
|
|
|
regStatus += "You have never installed this feature";
|
|
|
|
|
regStatus += "This feature has no registration information";
|
|
|
|
|
} else {
|
|
|
|
|
if (pkg.expDate <= new Date().getTime()) {
|
|
|
|
|
regStatus += "The trial period for this feature has expired on this machine";
|
|
|
|
@ -65,7 +65,9 @@
|
|
|
|
|
|
|
|
|
|
if (pluginSecurityInfo.IsMBSupporter) {
|
|
|
|
|
$('#regInfo', page).html(pkg.regInfo || "");
|
|
|
|
|
if (pkg.price > 0) {
|
|
|
|
|
// Fill in PayPal info
|
|
|
|
|
$('premiumHasPrice', page).show();
|
|
|
|
|
$('#featureId', page).val(pkg.featureId);
|
|
|
|
|
$('#featureName', page).val(pkg.name);
|
|
|
|
|
$('#amount', page).val(pkg.price);
|
|
|
|
@ -81,7 +83,11 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
$('#regInfo', page).html("<h3>You must be a <a href='supporter.html'>Media Browser Supporter</a> in order to register this feature.</h3>");
|
|
|
|
|
// Supporter-only feature
|
|
|
|
|
$('premiumHasPrice', page).hide();
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
$('#regInfo', page).html("<h3>You must be a <a href='supporter.html'>Media Browser Supporter</a> in order to gain access to this feature.</h3>");
|
|
|
|
|
$('#ppButton', page).hide();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|