mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-31 20:52:17 +01:00
Contacts: Rename addcontact -> add
This commit is contained in:
parent
c981af5e54
commit
e2f074558d
18
js/app.js
18
js/app.js
@ -731,7 +731,7 @@ OC.Contacts = OC.Contacts || {
|
|||||||
OCCategories.type = 'contact';
|
OCCategories.type = 'contact';
|
||||||
this.bindEvents();
|
this.bindEvents();
|
||||||
this.$toggleAll.show();
|
this.$toggleAll.show();
|
||||||
this.showActions(['addcontact']);
|
this.showActions(['add']);
|
||||||
|
|
||||||
// Wait 2 mins then check if contacts are indexed.
|
// Wait 2 mins then check if contacts are indexed.
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
@ -1029,7 +1029,7 @@ OC.Contacts = OC.Contacts || {
|
|||||||
}
|
}
|
||||||
self.$contactList.show();
|
self.$contactList.show();
|
||||||
self.$toggleAll.show();
|
self.$toggleAll.show();
|
||||||
self.showActions(['addcontact']);
|
self.showActions(['add']);
|
||||||
if(result.type === 'category' || result.type === 'fav') {
|
if(result.type === 'category' || result.type === 'fav') {
|
||||||
self.contacts.showContacts(result.contacts);
|
self.contacts.showContacts(result.contacts);
|
||||||
} else if(result.type === 'shared') {
|
} else if(result.type === 'shared') {
|
||||||
@ -1108,9 +1108,9 @@ OC.Contacts = OC.Contacts || {
|
|||||||
self.buildGroupSelect();
|
self.buildGroupSelect();
|
||||||
}
|
}
|
||||||
if(isChecked) {
|
if(isChecked) {
|
||||||
self.showActions(['addcontact', 'download', 'groups', 'delete', 'favorite']);
|
self.showActions(['add', 'download', 'groups', 'delete', 'favorite']);
|
||||||
} else {
|
} else {
|
||||||
self.showActions(['addcontact']);
|
self.showActions(['add']);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -1119,9 +1119,9 @@ OC.Contacts = OC.Contacts || {
|
|||||||
if(self.$groups.find('option').length === 1) {
|
if(self.$groups.find('option').length === 1) {
|
||||||
self.buildGroupSelect();
|
self.buildGroupSelect();
|
||||||
}
|
}
|
||||||
self.showActions(['addcontact', 'download', 'groups', 'delete', 'favorite']);
|
self.showActions(['add', 'download', 'groups', 'delete', 'favorite']);
|
||||||
} else if(self.contacts.getSelectedContacts().length === 0) {
|
} else if(self.contacts.getSelectedContacts().length === 0) {
|
||||||
self.showActions(['addcontact']);
|
self.showActions(['add']);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -1144,7 +1144,7 @@ OC.Contacts = OC.Contacts || {
|
|||||||
self.setAllChecked(false);
|
self.setAllChecked(false);
|
||||||
self.$toggleAll.prop('checked', false);
|
self.$toggleAll.prop('checked', false);
|
||||||
if(!self.currentid) {
|
if(!self.currentid) {
|
||||||
self.showActions(['addcontact']);
|
self.showActions(['add']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($opt.val() === 'add') { // Add new group
|
if($opt.val() === 'add') { // Add new group
|
||||||
@ -1438,7 +1438,7 @@ OC.Contacts = OC.Contacts || {
|
|||||||
} else {
|
} else {
|
||||||
self.contacts.delayedDelete(self.contacts.getSelectedContacts());
|
self.contacts.delayedDelete(self.contacts.getSelectedContacts());
|
||||||
}
|
}
|
||||||
self.showActions(['addcontact']);
|
self.showActions(['add']);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.$header.on('click keydown', '.download', function(event) {
|
this.$header.on('click keydown', '.download', function(event) {
|
||||||
@ -1824,7 +1824,7 @@ OC.Contacts = OC.Contacts || {
|
|||||||
}
|
}
|
||||||
this.$contactList.removeClass('dim');
|
this.$contactList.removeClass('dim');
|
||||||
delete this.currentid;
|
delete this.currentid;
|
||||||
this.showActions(['addcontact']);
|
this.showActions(['add']);
|
||||||
this.$groups.find('optgroup,option:not([value="-1"])').remove();
|
this.$groups.find('optgroup,option:not([value="-1"])').remove();
|
||||||
},
|
},
|
||||||
openContact: function(id) {
|
openContact: function(id) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user