summaryrefslogtreecommitdiffstats
path: root/templates/contactList.html
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-18 17:46:06 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-18 17:46:06 +0100
commit2b4e28e2789778a73dee14b68cc74a6b563f758d (patch)
tree9274b8ee4725c8396804fd11fc78655681cb7866 /templates/contactList.html
parent361754e26bbc95273f6ec68e5256ed98a2650c28 (diff)
Highlight selected contact
Diffstat (limited to 'templates/contactList.html')
-rw-r--r--templates/contactList.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/contactList.html b/templates/contactList.html
index 71af18e6..861b1389 100644
--- a/templates/contactList.html
+++ b/templates/contactList.html
@@ -1,4 +1,7 @@
<button class="app-content-list-button" type="button" name="button" ng-click="ctrl.createContact()">Add contact</button>
-<div class="app-content-list-item" ng-repeat="contact in ctrl.contacts | contactGroupFilter:ctrl.routeParams.gid | orderBy:'fullName()' track by contact.uid()" contact data="contact">
+<div class="app-content-list-item"
+ ng-repeat="contact in ctrl.contacts | contactGroupFilter:ctrl.routeParams.gid | orderBy:'fullName()' track by contact.uid()"
+ contact data="contact"
+ ng-click="setSelected(contact.uid())" ng-class="{active: contact.uid() === selectedContactId}">
</div>