From 0aaddf0ca59f7deb37a34e9757df2c92f20bc96e Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Sat, 23 Feb 2013 22:51:28 +0100 Subject: [PATCH] Contacts: Close contact on empty hash. --- js/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/app.js b/js/app.js index 5f570ed4..df4b6ab5 100644 --- a/js/app.js +++ b/js/app.js @@ -290,6 +290,8 @@ OC.Contacts = OC.Contacts || { var id = parseInt(window.location.hash.substr(1)); if(id && id !== self.currentid) { self.openContact(id); + } else if(!id && self.currentid) { + self.closeContact(self.currentid); } }