mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-02 14:24:10 +01:00
Contacts: fix function names to coding standard
This commit is contained in:
parent
221c1fd5e8
commit
9c9a02add2
@ -254,12 +254,12 @@ Contacts={
|
||||
});
|
||||
}
|
||||
},
|
||||
do_export:function() {
|
||||
doExport:function() {
|
||||
document.location.href = OC.linkTo('contacts', 'export.php') + '?contactid=' + this.id;
|
||||
//$.get(OC.linkTo('contacts', 'export.php'),{'contactid':this.id},function(jsondata){
|
||||
//});
|
||||
},
|
||||
do_import:function(){
|
||||
doImport:function(){
|
||||
Contacts.UI.notImplemented();
|
||||
},
|
||||
add:function(n, fn, aid, isnew){ // add a new contact
|
||||
@ -323,7 +323,7 @@ Contacts={
|
||||
}
|
||||
});
|
||||
},
|
||||
do_delete:function() {
|
||||
doDelete:function() {
|
||||
$('#contacts_deletecard').tipsy('hide');
|
||||
OC.dialogs.confirm(t('contacts', 'Are you sure you want to delete this contact?'), t('contacts', 'Warning'), function(answer) {
|
||||
if(answer == true) {
|
||||
@ -1264,7 +1264,7 @@ Contacts={
|
||||
});
|
||||
}
|
||||
},
|
||||
do_import:function(){
|
||||
doImport:function(){
|
||||
Contacts.UI.notImplemented();
|
||||
},
|
||||
submit:function(button, bookid){
|
||||
@ -1364,7 +1364,7 @@ $(document).ready(function(){
|
||||
});
|
||||
|
||||
$('#contacts_deletecard').live('click',function(){
|
||||
Contacts.UI.Card.do_delete();
|
||||
Contacts.UI.Card.doDelete();
|
||||
});
|
||||
|
||||
$('#contacts li').bind('inview', function(event, isInView, visiblePartX, visiblePartY) {
|
||||
|
@ -17,7 +17,7 @@ $id = isset($_['id']) ? $_['id'] : '';
|
||||
<li><a data-type="CATEGORIES"><?php echo $l->t('Categories'); ?></a></li>
|
||||
</ul>
|
||||
</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');?>" />
|
||||
</div>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<div id="firstrun">
|
||||
<?php echo $l->t('You have no contacts in your list.') ?>
|
||||
<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('Edit addressbooks') ?>" onclick="Contacts.UI.Addressbooks.overview()" />
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user