added fake array
This commit is contained in:
parent
75b72dd97a
commit
2dc2dcf9fe
|
@ -254,16 +254,17 @@ app.controller('websiteCtrl', [
|
||||||
vm.listSites();
|
vm.listSites();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$scope.domain = [
|
$scope.domain = [
|
||||||
{ domainName: "jon.lambson.daplie.com" },
|
{ domain: "jon.lambson.daplie.com" },
|
||||||
{ domainName: "music.daplie.me" },
|
{ domain: "music.daplie.me" },
|
||||||
{ domainName: "jon.daplie.me" }
|
{ domain: "jon.daplie.me" }
|
||||||
];
|
];
|
||||||
|
|
||||||
$scope.localDomainSearch = function(str, domain) {
|
$scope.localDomainSearch = function(str, domain) {
|
||||||
var matches = [];
|
var matches = [];
|
||||||
domain.forEach(function(domain) {
|
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);
|
matches.push(domain);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -76,17 +76,13 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div angucomplete-alt
|
<div angucomplete-alt
|
||||||
placeholder="Select a domain"
|
placeholder="Select a domain"
|
||||||
pause="300"
|
pause="300"
|
||||||
selected-object="selectedPerson"
|
selected-object="selectedDomain"
|
||||||
local-data="domain"
|
local-data="domain"
|
||||||
local-search="localDomainSearch"
|
local-search="localDomainSearch"
|
||||||
title-field="domainName"
|
title-field="domain"
|
||||||
minlength="0"
|
minlength="0"
|
||||||
input-class="form-control form-control-small"
|
input-class="form-control form-control-small"
|
||||||
match-class="highlight">
|
match-class="highlight">
|
||||||
|
|
Loading…
Reference in New Issue