]> source.dussan.org Git - nextcloud-server.git/commitdiff
Save the right contact property
authorBart Visscher <bartv@thisnet.nl>
Fri, 7 Oct 2011 20:38:19 +0000 (22:38 +0200)
committerBart Visscher <bartv@thisnet.nl>
Fri, 7 Oct 2011 20:38:19 +0000 (22:38 +0200)
apps/contacts/js/interface.js

index 47e9bb10b1f4f3218dbcc1f371df4a6647b43066..215c4001d9ef446267700ac96c5379791c62e3ee 100644 (file)
@@ -129,7 +129,7 @@ $(document).ready(function(){
        });
 
        $('#contacts_setpropertyform input[type="submit"]').live('click',function(){
-               $.post('ajax/setproperty.php',$('#contacts_setpropertyform').serialize(),function(jsondata){
+               $.post('ajax/setproperty.php',$(this).parent('form').serialize(),function(jsondata){
                        if(jsondata.status == 'success'){
                                $('.contacts_details_property[data-checksum="'+jsondata.data.oldchecksum+'"]').replaceWith(jsondata.data.page);
                        }