1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-19 08:52:22 +01:00

Contacts: Trim group name.

This commit is contained in:
Thomas Tanghus 2013-01-16 11:59:08 +01:00
parent fdb6768c55
commit 821b35ce1c

View File

@ -87,7 +87,7 @@ OC.Contacts = OC.Contacts || {};
* @returns string The name of the group.
*/
GroupList.prototype.nameById = function(id) {
return this.findById(id).clone().find("*").remove().end().text(); //.contents().filter(function(){ return(this.nodeType == 3); }).text().trim();
return this.findById(id).clone().find("*").remove().end().text().trim(); //.contents().filter(function(){ return(this.nodeType == 3); }).text().trim();
};
/** Get the group element by id.