diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-08-11 10:08:02 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-08-11 10:08:02 +0200 |
commit | 110f96df78f1ba4074df59a6c13025dc69a6b26f (patch) | |
tree | e40c0ec80d90a01a7cb5cb0efbd49a603d8262b5 /apps/contacts | |
parent | b6b00393a287547fb3a0e035855796a95d7a486a (diff) | |
download | nextcloud-server-110f96df78f1ba4074df59a6c13025dc69a6b26f.tar.gz nextcloud-server-110f96df78f1ba4074df59a6c13025dc69a6b26f.zip |
At least dome layout in Contacts
Diffstat (limited to 'apps/contacts')
-rw-r--r-- | apps/contacts/js/interface.js | 30 | ||||
-rw-r--r-- | apps/contacts/templates/index.php | 4 |
2 files changed, 17 insertions, 17 deletions
diff --git a/apps/contacts/js/interface.js b/apps/contacts/js/interface.js index bab71eec422..ef2179b372b 100644 --- a/apps/contacts/js/interface.js +++ b/apps/contacts/js/interface.js @@ -4,12 +4,12 @@ $(document).ready(function(){ return false; });*/ - $('#contacts_contacts li').live('click',function(){ + $('#leftcontent li').live('click',function(){ var id = $(this).data('id'); $.getJSON('ajax/getdetails.php',{'id':id},function(jsondata){ if(jsondata.status == 'success'){ - $('#contacts_details').data('id',jsondata.data.id); - $('#contacts_details').html(jsondata.data.page); + $('#rightcontent').data('id',jsondata.data.id); + $('#rightcontent').html(jsondata.data.page); } else{ alert(jsondata.data.message); @@ -19,12 +19,12 @@ $(document).ready(function(){ }); $('#contacts_deletecard').live('click',function(){ - var id = $('#contacts_details').data('id'); + var id = $('#rightcontent').data('id'); $.getJSON('ajax/deletecard.php',{'id':id},function(jsondata){ if(jsondata.status == 'success'){ - $('#contacts_contacts [data-id="'+jsondata.data.id+'"]').remove(); - $('#contacts_details').data('id',''); - $('#contacts_details').html(''); + $('#leftcontent [data-id="'+jsondata.data.id+'"]').remove(); + $('#rightcontent').data('id',''); + $('#rightcontent').html(''); } else{ alert(jsondata.data.message); @@ -34,10 +34,10 @@ $(document).ready(function(){ }); $('#contacts_addproperty').live('click',function(){ - var id = $('#contacts_details').data('id'); + var id = $('#rightcontent').data('id'); $.getJSON('ajax/showaddproperty.php',{'id':id},function(jsondata){ if(jsondata.status == 'success'){ - $('#contacts_details').append(jsondata.data.page); + $('#rightcontent').append(jsondata.data.page); } else{ alert(jsondata.data.message); @@ -79,8 +79,8 @@ $(document).ready(function(){ $('#contacts_newcontact').click(function(){ $.getJSON('ajax/showaddcard.php',{},function(jsondata){ if(jsondata.status == 'success'){ - $('#contacts_details').data('id',''); - $('#contacts_details').html(jsondata.data.page); + $('#rightcontent').data('id',''); + $('#rightcontent').html(jsondata.data.page); } else{ alert(jsondata.data.message); @@ -92,8 +92,8 @@ $(document).ready(function(){ $('#contacts_addcardform input[type="submit"]').live('click',function(){ $.post('ajax/addcard.php',$('#contacts_addcardform').serialize(),function(jsondata){ if(jsondata.status == 'success'){ - $('#contacts_details').data('id',jsondata.data.id); - $('#contacts_details').html(jsondata.data.page); + $('#rightcontent').data('id',jsondata.data.id); + $('#rightcontent').html(jsondata.data.page); } else{ alert(jsondata.data.message); @@ -103,7 +103,7 @@ $(document).ready(function(){ }); $('.contacts_property [data-use="edit"]').live('click',function(){ - var id = $('#contacts_details').data('id'); + var id = $('#rightcontent').data('id'); var checksum = $(this).parent().parent().data('checksum'); $.getJSON('ajax/showsetproperty.php',{'id': id, 'checksum': checksum },function(jsondata){ if(jsondata.status == 'success'){ @@ -129,7 +129,7 @@ $(document).ready(function(){ }); $('.contacts_property [data-use="delete"]').live('click',function(){ - var id = $('#contacts_details').data('id'); + var id = $('#rightcontent').data('id'); var checksum = $(this).parent().parent().data('checksum'); $.getJSON('ajax/deleteproperty.php',{'id': id, 'checksum': checksum },function(jsondata){ if(jsondata.status == 'success'){ diff --git a/apps/contacts/templates/index.php b/apps/contacts/templates/index.php index 02b9d976cc4..ffcca50b34d 100644 --- a/apps/contacts/templates/index.php +++ b/apps/contacts/templates/index.php @@ -3,13 +3,13 @@ OC_Util::addScript('contacts','interface'); OC_Util::addStyle('contacts','styles'); ?> -<div id="contacts_contacts" class="leftcontent"> +<div id="leftcontent" class="leftcontent"> <ul> <?php echo $this->inc("part.contacts"); ?> </ul> <a id="contacts_newcontact"><?php echo $l->t('Add Contact'); ?></a> </div> -<div id="contacts_details" class="rightcontent" data-id="<?php echo $_['id']; ?>"> +<div id="rightcontent" class="rightcontent" data-id="<?php echo $_['id']; ?>"> <?php echo $this->inc("part.details"); ?> </div> <?php if(count($_['addressbooks']) == 1 ): ?> |