]> source.dussan.org Git - nextcloud-server.git/commitdiff
Contacts: Don't load event handlers more than once, or you're asking for trouble :-P
authorThomas Tanghus <thomas@tanghus.net>
Thu, 3 May 2012 22:12:46 +0000 (00:12 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Thu, 3 May 2012 22:13:35 +0000 (00:13 +0200)
apps/contacts/js/contacts.js

index bb8b6b89e57c53d771cca51fb6d6b3e3f3540fa1..739724f3f1da146bd830451409fd0cc089a232d3 100644 (file)
@@ -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';