mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-01 13:24:10 +01:00
Contacts: Don't load event handlers more than once, or you're asking for trouble :-P
This commit is contained in:
parent
ffa2209b43
commit
81192c2866
@ -234,7 +234,6 @@ Contacts={
|
||||
var id = jsondata.data.id;
|
||||
$.getJSON(OC.filePath('contacts', 'ajax', 'contactdetails.php'),{'id':id},function(jsondata){
|
||||
if(jsondata.status == 'success'){
|
||||
Contacts.UI.loadHandlers();
|
||||
Contacts.UI.Card.loadContact(jsondata.data);
|
||||
$('#leftcontent .active').removeClass('active');
|
||||
var item = '<li data-id="'+jsondata.data.id+'" class="active"><a href="index.php?id='+jsondata.data.id+'" style="background: url('+OC.filePath('contacts', '', 'thumbnail.php')+'?id='+jsondata.data.id+') no-repeat scroll 0% 0% transparent;">'+Contacts.UI.Card.fn+'</a></li>';
|
||||
@ -1429,7 +1428,6 @@ Contacts={
|
||||
}
|
||||
$(document).ready(function(){
|
||||
|
||||
Contacts.UI.loadHandlers();
|
||||
OCCategories.changed = Contacts.UI.Card.categoriesChanged;
|
||||
OCCategories.app = 'contacts';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user