diff options
author | zotlabs <mike@macgirvin.com> | 2018-04-24 15:32:24 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-04-24 15:32:24 -0700 |
commit | 8face5a66c82e7086c379ca4b07f178a85a781b3 (patch) | |
tree | f617c210b1abb8bb8790c8a7aeb8c677d20d5f5d /view/js | |
parent | a6c42e875633e8e67bbf93425182cce4de3eb653 (diff) | |
download | volse-hubzilla-8face5a66c82e7086c379ca4b07f178a85a781b3.tar.gz volse-hubzilla-8face5a66c82e7086c379ca4b07f178a85a781b3.tar.bz2 volse-hubzilla-8face5a66c82e7086c379ca4b07f178a85a781b3.zip |
make tag autocomplete less scary looking in the editor. If this works out we can simplify and get rid of a huge amount of spaghetti tag logic.
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/autocomplete.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index be632a07e..76c3fb69e 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -84,13 +84,8 @@ function editor_replace(item) { } // $2 ensures that prefix (@,@!) is preserved - var id = item.id; - // 16 chars of hash should be enough. Full hash could be used if it can be done in a visually appealing way. - // 16 chars is also the minimum length in the backend (otherwise it's interpreted as a local id). - if(id.length > 16) - id = item.id.substring(0,16); - return '$1$2' + item.nick.replace(' ', '') + '+' + id + ' '; + return '$1$2{' + item.link + '} '; } function basic_replace(item) { |