Permalink
Browse files

click outside contact details container to close

  • Loading branch information...
deanlandolt committed Mar 4, 2012
1 parent 0ba4c89 commit b20323a5d28a0797ed3973651dc0d9dc0baa56aa
Showing with 9 additions and 0 deletions.
  1. +9 −0 apps/dialer/js/contacts.js
@@ -472,4 +472,13 @@ window.addEventListener('load', function contactSetup(evt) {
Contacts.setup();
ShortcutsHandler.setup();
ContactDetails.setup();
+
+ // click outside details container to close
+ document.getElementById('contacts-overlay').addEventListener('click', function(evt) {
+ ContactDetails.hide();
+ });
+ document.getElementById('contact-details-container').addEventListener('click', function(evt) {
+ evt.stopPropagation();
+ });
+
});

0 comments on commit b20323a

Please sign in to comment.