mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-19 08:52:22 +01:00
Contacts: Get proper metadata on Contact instantiation.
This commit is contained in:
parent
a1e2b2ec64
commit
8ee05eb430
@ -7,7 +7,7 @@ OC.Contacts = OC.Contacts || {};
|
|||||||
* An item which binds the appropriate html and event handlers
|
* An item which binds the appropriate html and event handlers
|
||||||
* @param parent the parent ContactList
|
* @param parent the parent ContactList
|
||||||
* @param id The integer contact id.
|
* @param id The integer contact id.
|
||||||
* @param metadata An metadata object containing and 'owner' string variable and an integer 'permissions' variable.
|
* @param metadata An metadata object containing and 'owner' string variable, a 'backend' string variable and an integer 'permissions' variable.
|
||||||
* @param data the data used to populate the contact
|
* @param data the data used to populate the contact
|
||||||
* @param listtemplate the jquery object used to render the contact list item
|
* @param listtemplate the jquery object used to render the contact list item
|
||||||
* @param fulltemplate the jquery object used to render the entire contact
|
* @param fulltemplate the jquery object used to render the entire contact
|
||||||
@ -1980,10 +1980,10 @@ OC.Contacts = OC.Contacts || {};
|
|||||||
var addressBooks = this.addressBooks.selectByPermission(OC.PERMISSION_UPDATE);
|
var addressBooks = this.addressBooks.selectByPermission(OC.PERMISSION_UPDATE);
|
||||||
var addressBook = addressBooks[0];
|
var addressBook = addressBooks[0];
|
||||||
var metadata = {
|
var metadata = {
|
||||||
parent: addressBook.id,
|
parent: addressBook.getId(),
|
||||||
backend: addressBook.backend,
|
backend: addressBook.getBackend(),
|
||||||
permissions: addressBook.permissions,
|
permissions: addressBook.getPermissions(),
|
||||||
owner: addressBook.owner
|
owner: addressBook.getOwner()
|
||||||
};
|
};
|
||||||
var contact = new Contact(
|
var contact = new Contact(
|
||||||
this,
|
this,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user