mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-11-29 11:24:11 +01:00
Made changing name order ~30% faster.
This commit is contained in:
parent
d5ad910d57
commit
eba736a03b
@ -47,8 +47,10 @@ OC.Contacts = OC.Contacts || {};
|
||||
return;
|
||||
}
|
||||
this.sortOrder = method;
|
||||
var $elem = this.$listelem.find('.nametext');
|
||||
$elem.text(escapeHTML(this.displayNames[method]));
|
||||
// ~30% faster than jQuery.
|
||||
this.$listelem.get(0).firstElementChild.getElementsByClassName('nametext')[0].innerHTML = escapeHTML(this.displayNames[method]);
|
||||
//var $elem = this.$listelem.find('.nametext').text(escapeHTML(this.displayNames[method]));
|
||||
//$elem.text(escapeHTML(this.displayNames[method]));
|
||||
};
|
||||
|
||||
Contact.prototype.getId = function() {
|
||||
|
Loading…
Reference in New Issue
Block a user