don't offer forum (@name+) completion in comments, since it won't do anything.
This commit is contained in:
parent
34781433c1
commit
1a9b8d4f0c
@ -11,7 +11,7 @@ function acl_init(&$a){
|
|||||||
$count = (x($_REQUEST,'count')?$_REQUEST['count']:100);
|
$count = (x($_REQUEST,'count')?$_REQUEST['count']:100);
|
||||||
$search = (x($_REQUEST,'search')?$_REQUEST['search']:"");
|
$search = (x($_REQUEST,'search')?$_REQUEST['search']:"");
|
||||||
$type = (x($_REQUEST,'type')?$_REQUEST['type']:"");
|
$type = (x($_REQUEST,'type')?$_REQUEST['type']:"");
|
||||||
|
$noforums = (x($_REQUEST,'n') ? $_REQUEST['n'] : false);
|
||||||
|
|
||||||
// For use with jquery.autocomplete for private mail completion
|
// For use with jquery.autocomplete for private mail completion
|
||||||
|
|
||||||
@ -230,7 +230,7 @@ function acl_init(&$a){
|
|||||||
if(strpos($g['hash'],'/'))
|
if(strpos($g['hash'],'/'))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(($g['abook_their_perms'] & PERMS_W_TAGWALL) && $type == 'c') {
|
if(($g['abook_their_perms'] & PERMS_W_TAGWALL) && $type == 'c' && (! $noforums)) {
|
||||||
$contacts[] = array(
|
$contacts[] = array(
|
||||||
"type" => "c",
|
"type" => "c",
|
||||||
"photo" => "images/twopeople.png",
|
"photo" => "images/twopeople.png",
|
||||||
|
@ -575,7 +575,7 @@ function updateConvItems(mode,data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* autocomplete @nicknames */
|
/* autocomplete @nicknames */
|
||||||
$(".comment-edit-form textarea").contact_autocomplete(baseurl+"/acl");
|
$(".comment-edit-form textarea").contact_autocomplete(baseurl+"/acl?f=&n=1");
|
||||||
|
|
||||||
var bimgs = $(".wall-item-body img").not(function() { return this.complete; });
|
var bimgs = $(".wall-item-body img").not(function() { return this.complete; });
|
||||||
var bimgcount = bimgs.length;
|
var bimgcount = bimgs.length;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$(".comment-edit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
|
$(".comment-edit-wrapper textarea").contact_autocomplete(baseurl+"/acl?f=&n=1");
|
||||||
// make auto-complete work in more places
|
// make auto-complete work in more places
|
||||||
$(".wall-item-comment-wrapper textarea").contact_autocomplete(baseurl+"/acl");
|
$(".wall-item-comment-wrapper textarea").contact_autocomplete(baseurl+"/acl?f=&n=1");
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user