1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-01 13:24:10 +01:00

Contacts: fix function names to coding standard

This commit is contained in:
Bart Visscher 2012-04-10 21:53:36 +02:00
parent 221c1fd5e8
commit 9c9a02add2
3 changed files with 7 additions and 7 deletions

View File

@ -254,12 +254,12 @@ Contacts={
}); });
} }
}, },
do_export:function() { doExport:function() {
document.location.href = OC.linkTo('contacts', 'export.php') + '?contactid=' + this.id; document.location.href = OC.linkTo('contacts', 'export.php') + '?contactid=' + this.id;
//$.get(OC.linkTo('contacts', 'export.php'),{'contactid':this.id},function(jsondata){ //$.get(OC.linkTo('contacts', 'export.php'),{'contactid':this.id},function(jsondata){
//}); //});
}, },
do_import:function(){ doImport:function(){
Contacts.UI.notImplemented(); Contacts.UI.notImplemented();
}, },
add:function(n, fn, aid, isnew){ // add a new contact add:function(n, fn, aid, isnew){ // add a new contact
@ -323,7 +323,7 @@ Contacts={
} }
}); });
}, },
do_delete:function() { doDelete:function() {
$('#contacts_deletecard').tipsy('hide'); $('#contacts_deletecard').tipsy('hide');
OC.dialogs.confirm(t('contacts', 'Are you sure you want to delete this contact?'), t('contacts', 'Warning'), function(answer) { OC.dialogs.confirm(t('contacts', 'Are you sure you want to delete this contact?'), t('contacts', 'Warning'), function(answer) {
if(answer == true) { if(answer == true) {
@ -1264,7 +1264,7 @@ Contacts={
}); });
} }
}, },
do_import:function(){ doImport:function(){
Contacts.UI.notImplemented(); Contacts.UI.notImplemented();
}, },
submit:function(button, bookid){ submit:function(button, bookid){
@ -1364,7 +1364,7 @@ $(document).ready(function(){
}); });
$('#contacts_deletecard').live('click',function(){ $('#contacts_deletecard').live('click',function(){
Contacts.UI.Card.do_delete(); Contacts.UI.Card.doDelete();
}); });
$('#contacts li').bind('inview', function(event, isInView, visiblePartX, visiblePartY) { $('#contacts li').bind('inview', function(event, isInView, visiblePartX, visiblePartY) {

View File

@ -17,7 +17,7 @@ $id = isset($_['id']) ? $_['id'] : '';
<li><a data-type="CATEGORIES"><?php echo $l->t('Categories'); ?></a></li> <li><a data-type="CATEGORIES"><?php echo $l->t('Categories'); ?></a></li>
</ul> </ul>
</div> </div>
<img onclick="Contacts.UI.Card.do_export();" class="svg action" id="contacts_downloadcard" src="<?php echo image_path('', 'actions/download.svg'); ?>" title="<?php echo $l->t('Download contact');?>" /> <img onclick="Contacts.UI.Card.doExport();" class="svg action" id="contacts_downloadcard" src="<?php echo image_path('', 'actions/download.svg'); ?>" title="<?php echo $l->t('Download contact');?>" />
<img class="svg action" id="contacts_deletecard" src="<?php echo image_path('', 'actions/delete.svg'); ?>" title="<?php echo $l->t('Delete contact');?>" /> <img class="svg action" id="contacts_deletecard" src="<?php echo image_path('', 'actions/delete.svg'); ?>" title="<?php echo $l->t('Delete contact');?>" />
</div> </div>

View File

@ -1,7 +1,7 @@
<div id="firstrun"> <div id="firstrun">
<?php echo $l->t('You have no contacts in your list.') ?> <?php echo $l->t('You have no contacts in your list.') ?>
<div id="selections"> <div id="selections">
<input type="button" value="<?php echo $l->t('Import contacts') ?>" onclick="Contacts.UI.Addressbooks.do_import()" /> <input type="button" value="<?php echo $l->t('Import contacts') ?>" onclick="Contacts.UI.Addressbooks.doImport()" />
<input type="button" value="<?php echo $l->t('Add contact') ?>" onclick="Contacts.UI.Card.editNew()" /> <input type="button" value="<?php echo $l->t('Add contact') ?>" onclick="Contacts.UI.Card.editNew()" />
<input type="button" value="<?php echo $l->t('Edit addressbooks') ?>" onclick="Contacts.UI.Addressbooks.overview()" /> <input type="button" value="<?php echo $l->t('Edit addressbooks') ?>" onclick="Contacts.UI.Addressbooks.overview()" />
</div> </div>