From d4d5d97322f499fe04d89ddbb4118dc97bf56da9 Mon Sep 17 00:00:00 2001
From: Eric Reed
Date: Thu, 26 Sep 2013 11:30:47 -0400
Subject: [PATCH] Add Link Keys form to supporterkey.html
---
dashboard-ui/scripts/supporterkeypage.js | 32 ++++++++++++++++++++
dashboard-ui/supporterkey.html | 37 ++++++++++++++++++++++++
2 files changed, 69 insertions(+)
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 @@
+
+ Multiple Key Linking
+
+ 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.
+
+