diff options
author | Joas Schilling <coding@schilljs.com> | 2018-04-25 16:23:43 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-04-26 13:49:24 +0300 |
commit | 85cd8181e5c5c0a58f89d67a492b97b10631fdc2 (patch) | |
tree | 3f6e22b7e48028168f8541ecffb4ca9f5320ce29 /templates | |
parent | 790bddd06d098ca371feaef7d22fd615915bc127 (diff) |
Add basic UI for autocompletion
CSS styles were directly copied from
"apps/comments/css/autocomplete.scss".
JavaScript code in the chat view
was slightly simplified from "apps/comments/js/commentstabview.js".
Currently mentions are not formatted when a message is being composed;
"@" followed by the user name is added to the message so it can be
directly sent without further processing. Formatted mentions will be
introduced in another commit.
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index-public.php | 3 | ||||
-rw-r--r-- | templates/index.php | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/templates/index-public.php b/templates/index-public.php index db83642a2..b77cd315f 100644 --- a/templates/index-public.php +++ b/templates/index-public.php @@ -7,6 +7,7 @@ vendor_style('select2/select2'); style('spreed', 'style'); style('spreed', 'comments'); +style('spreed', 'autocomplete'); script( 'spreed', [ @@ -14,6 +15,8 @@ script( 'vendor/backbone.radio/build/backbone.radio.min', 'vendor/backbone.marionette/lib/backbone.marionette.min', 'vendor/jshashes/hashes.min', + 'vendor/Caret.js/dist/jquery.caret.min', + 'vendor/At.js/dist/js/jquery.atwho.min', 'models/chatmessage', 'models/chatmessagecollection', 'models/localstoragemodel', diff --git a/templates/index.php b/templates/index.php index 2a3fb8607..1b0880cb9 100644 --- a/templates/index.php +++ b/templates/index.php @@ -7,6 +7,7 @@ vendor_style('select2/select2'); style('spreed', 'style'); style('spreed', 'comments'); +style('spreed', 'autocomplete'); script( 'spreed', [ @@ -14,6 +15,8 @@ script( 'vendor/backbone.radio/build/backbone.radio.min', 'vendor/backbone.marionette/lib/backbone.marionette.min', 'vendor/jshashes/hashes.min', + 'vendor/Caret.js/dist/jquery.caret.min', + 'vendor/At.js/dist/js/jquery.atwho.min', 'models/chatmessage', 'models/chatmessagecollection', 'models/room', |