Contacts: fix function names to coding standard
This commit is contained in:
parent
3f6e971571
commit
2dfa02a346
|
@ -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) {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue