mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Contacts: Don't load event handlers more than once, or you're asking for trouble :-P
This commit is contained in:
parent
a4a3d62a55
commit
bde5b4a7ff
1 changed files with 0 additions and 2 deletions
|
|
@ -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 a new issue