1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-30 19:52:17 +01:00

Contacts: Close contact on empty hash.

This commit is contained in:
Thomas Tanghus 2013-02-23 22:51:28 +01:00
parent d74ef9de9e
commit 0aaddf0ca5

View File

@ -290,6 +290,8 @@ OC.Contacts = OC.Contacts || {
var id = parseInt(window.location.hash.substr(1)); var id = parseInt(window.location.hash.substr(1));
if(id && id !== self.currentid) { if(id && id !== self.currentid) {
self.openContact(id); self.openContact(id);
} else if(!id && self.currentid) {
self.closeContact(self.currentid);
} }
} }