diff --git a/wwwroot/js/app.customers.js b/wwwroot/js/app.customers.js
index 7db5285..b34d06d 100644
--- a/wwwroot/js/app.customers.js
+++ b/wwwroot/js/app.customers.js
@@ -108,18 +108,23 @@ app.customers = (function() {
var cardDisplay = '
';
//Iterate the sites
- for (var y = 0; y < sites.length; y++) {
+ for (var SitesIndex = 0; SitesIndex < sites.length; SitesIndex++) {
//append the site name
cardDisplay +=
- '- ' + sites[y].name + "
";
+ '- ' + sites[SitesIndex].name + "
";
//append the active subs
//purchase link for future
//https://rockfish.ayanova.com/default.htm#!/purchaseEdit//
- if (sites[y].children.length > 0) {
+ if (sites[SitesIndex].children.length > 0) {
cardDisplay += '';
- for (var x = 0; x < sites[y].children.length; x++) {
- cardDisplay += "- " + sites[y].children[x].name + "
";
+ for (var SitePurchasesIndex = 0; SitePurchasesIndex < sites[SitesIndex].children.length; SitePurchasesIndex++) {
+ //Adtech Systems Inc.
+ //cardDisplay += "- " + sites[SitesIndex].children[SitePurchasesIndex].name + "
";
+ var PurchaseId=sites[SitesIndex].children[SitePurchasesIndex].id;
+ var SiteId=sites[SitesIndex].id;
+ var PurchaseUrl='' + sites[SitesIndex].children[SitePurchasesIndex].name + '';
+ cardDisplay += '- '+ PurchaseUrl + '
';
}
cardDisplay += "
";
} else {