diff --git a/dashboard-ui/scripts/supporterkeypage.js b/dashboard-ui/scripts/supporterkeypage.js index 6bd7840683..ea471f1a82 100644 --- a/dashboard-ui/scripts/supporterkeypage.js +++ b/dashboard-ui/scripts/supporterkeypage.js @@ -55,6 +55,38 @@ return false; }, + linkSupporterKeys: function () { + + Dashboard.showLoadingMsg(); + var page = $.mobile.activePage; + + var email = $('#txtNewEmail', page).val(); + var newkey = $('#txtNewKey', page).val(); + var oldkey = $('#txtOldKey', page).val(); + + var info = { + email: email, + newkey: newkey, + oldkey: oldkey + }; + + var url = "http://mb3admin.com/admin/service/supporter/linkKeys"; + console.log(url); + $.post(url, info).done(function (res) { + var result = JSON.parse(res); + Dashboard.hideLoadingMsg(); + if (result.Success) { + Dashboard.alert("Keys Linked."); + } else { + Dashboard.showError(result.ErrorMessage); + } + console.log(result); + + }); + + return false; + }, + retrieveSupporterKey: function () { Dashboard.showLoadingMsg(); diff --git a/dashboard-ui/supporterkey.html b/dashboard-ui/supporterkey.html index fe77610d11..c52945ec41 100644 --- a/dashboard-ui/supporterkey.html +++ b/dashboard-ui/supporterkey.html @@ -67,12 +67,49 @@
++ If your PayPal email address has changed causing you to have more than one MB3 supporter key, use this form to link the old key's + registrations with your new one. +
+