update email

This commit is contained in:
Luke Pulverenti 2015-12-28 13:59:50 -05:00
parent 18066b3b8e
commit 00d7362b88

View File

@ -235,10 +235,11 @@
$('#amount', page).val(pkg.price);
$('#regPrice', page).html("<h3>" + Globalize.translate('ValuePriceUSD').replace('{0}', "$" + pkg.price.toFixed(2)) + "</h3>");
$('#ppButton', page).hide();
var url = "http://mb3admin.com/admin/service/user/getPayPalEmail?id=" + pkg.owner;
fetch(url, { mode: 'no-cors' }).then(function (response) {
fetch(url).then(function (response) {
return response.json();
@ -246,9 +247,8 @@
if (dev.payPalEmail) {
$('#payPalEmail', page).val(dev.payPalEmail);
$('#ppButton', page).show();
} else {
$('#ppButton', page).hide();
}
});