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

Don't disable displayname when adding adressbook.

This commit is contained in:
Thomas Tanghus 2012-09-06 23:25:31 +02:00
parent d261bb9a90
commit e0f9ed99d3

View File

@ -49,7 +49,7 @@ OC.Contacts.Settings = OC.Contacts.Settings || {
console.log('doEdit: ', id);
var owner = this.adrsettings.find('[data-id="'+id+'"]').data('owner');
var actions = ['description', 'save', 'cancel'];
if(owner == OC.currentUser) {
if(owner == OC.currentUser || id === 'new') {
actions.push('active', 'name');
}
this.showActions(actions);