mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 07:27:04 +00:00
[select2] show 'searching' tip
This commit is contained in:
@@ -759,6 +759,12 @@ define([
|
||||
|
||||
// format items shown in the drop-down menu
|
||||
templateResult: function(item) {
|
||||
// show 'searching' tip
|
||||
// item: {disabled: true, loading: true, text: "Searching..."}
|
||||
if (item.loading) {
|
||||
return item.text;
|
||||
}
|
||||
|
||||
if (item.avatar_url) {
|
||||
return '<img src="' + item.avatar_url + '" width="32" height="32" class="avatar vam"><span class="text ellipsis vam">' + _this.HTMLescape(item.name) + '<br />' + _this.HTMLescape(item.contact_email) + '</span>';
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user