From 2dc2dcf9fe416da02afdaaa16a6ef45ff754b1d7 Mon Sep 17 00:00:00 2001 From: Jon Lambson Date: Wed, 23 Aug 2017 17:07:15 -0600 Subject: [PATCH] added fake array --- js/controllers/website-controller.js | 9 +++++---- templates/website.html | 26 +++++++++++--------------- 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/js/controllers/website-controller.js b/js/controllers/website-controller.js index 9961caf..74cd889 100644 --- a/js/controllers/website-controller.js +++ b/js/controllers/website-controller.js @@ -254,16 +254,17 @@ app.controller('websiteCtrl', [ vm.listSites(); + $scope.domain = [ - { domainName: "jon.lambson.daplie.com" }, - { domainName: "music.daplie.me" }, - { domainName: "jon.daplie.me" } + { domain: "jon.lambson.daplie.com" }, + { domain: "music.daplie.me" }, + { domain: "jon.daplie.me" } ]; $scope.localDomainSearch = function(str, domain) { var matches = []; domain.forEach(function(domain) { - if ((domain.domainName.toLowerCase().indexOf(str.toString().toLowerCase()) >= 0)) { + if ((domain.domain.toLowerCase().indexOf(str.toString().toLowerCase()) >= 0)) { matches.push(domain); } }); diff --git a/templates/website.html b/templates/website.html index f5168ce..53e0de0 100644 --- a/templates/website.html +++ b/templates/website.html @@ -76,18 +76,14 @@ - - - - -
-
+
+