(js) Support SOGoLDAPContactInfoAttrbute

This commit is contained in:
Francis Lachapelle
2017-04-24 16:15:39 -04:00
parent 3d0c958a19
commit 634cbe3d1b
7 changed files with 14 additions and 6 deletions
@@ -131,7 +131,12 @@
* @return a string representing the fullname
*/
User.prototype.$fullname = function() {
return this.cn || this.uid;
var fullname = this.cn || this.uid;
if (this.c_info)
fullname += ' (' + this.c_info.split("\n").join("; ") + ')';
return fullname;
};
/**
@@ -311,6 +311,8 @@
fn = email.value;
}
}
if (this.contactinfo)
fn += ' (' + this.contactinfo.split("\n").join("; ") + ')';
return fn;
};