aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-11 23:54:11 -0700
committerfriendica <info@friendica.com>2014-04-11 23:54:11 -0700
commit2212ddb91317de34b584861f4e2c1dc625924612 (patch)
tree291a0ddb826d2be014216375ffe59bb75a94a023
parent47096df97e38cd08ecec83b53a936dfe84e7e022 (diff)
downloadvolse-hubzilla-2212ddb91317de34b584861f4e2c1dc625924612.tar.gz
volse-hubzilla-2212ddb91317de34b584861f4e2c1dc625924612.tar.bz2
volse-hubzilla-2212ddb91317de34b584861f4e2c1dc625924612.zip
use icons for identification
-rw-r--r--mod/acl.php4
-rw-r--r--view/js/autocomplete.js7
2 files changed, 8 insertions, 3 deletions
diff --git a/mod/acl.php b/mod/acl.php
index 8e6331a39..589a10eb5 100644
--- a/mod/acl.php
+++ b/mod/acl.php
@@ -210,11 +210,11 @@ function acl_init(&$a){
$contacts[] = array(
"type" => "c",
"photo" => $g['micro'],
- "name" => $g['name'] . ' ' . t('plus connections'),
+ "name" => $g['name'] . '+',
"id" => $g['id'] . '+',
"xid" => $g['hash'],
"link" => $g['nick'],
- "nick" => substr($g['nick'],0,strpos($g['nick'],'@')) . '+',
+ "nick" => substr($g['nick'],0,strpos($g['nick'],'@')),
"self" => (($g['abook_flags'] & ABOOK_FLAG_SELF) ? 'abook-self' : ''),
"taggable" => 'taggable'
);
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js
index 763ca354d..c820b3b47 100644
--- a/view/js/autocomplete.js
+++ b/view/js/autocomplete.js
@@ -85,7 +85,12 @@ ACPopup.prototype._search = function(){
if (data.tot>0){
that.cont.show();
$(data.items).each(function(){
- html = "<img src='{0}' height='16px' width='16px'>{1} ({2})".format(this.photo, this.name, this.nick)
+ if(this.taggable)
+ ihtml = '<i class="icon-group"></i>';
+ else
+ ihtml = '<i class="icon-user"></i>';
+
+ html = "<img src='{0}' height='16px' width='16px'>{1} {2} ({3})".format(this.photo, ihtml, this.name, this.nick)
that.add(this.taggable, html, this.nick.replace(' ','') + '+' + this.id + ' - ' + this.link);
});
} else {