Browse Source

make auto-complete work in more places

Signed-off-by: Simon L'nu <simon.lnu@gmail.com>
pull/144/head
Simon L'nu 9 years ago
parent
commit
49540fb958
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      mod/display.php

+ 9
- 1
mod/display.php View File

@ -16,7 +16,15 @@ function display_content(&$a) {
$o = '<div id="live-display"></div>' . "\r\n";
$a->page['htmlhead'] .= '<script>$(document).ready(function() { $(".comment-edit-wrapper textarea").contact_autocomplete(baseurl+"/acl"); });</script>';
$a->page['htmlhead'] .= <<<EOT
<script>
$(document).ready(function() {
$(".comment-edit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
// make auto-complete work in more places
$(".wall-item-comment-wrapper textarea").contact_autocomplete(baseurl+"/acl");
});
</script>
EOT;
$nick = (($a->argc > 1) ? $a->argv[1] : '');


Loading…
Cancel
Save