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:
parent
d74ef9de9e
commit
0aaddf0ca5
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user