aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/autocomplete.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-03-20 20:59:46 +0100
committerMario Vavti <mario@mariovavti.com>2017-03-20 20:59:46 +0100
commit837efcf5e73b7fbc81697bcb1257ef8cf6912cdd (patch)
treed0ef99b70cc7a6eff8383ff55914042ddae4866b /view/js/autocomplete.js
parent8b0bcdb2a56ba7a8a9c55687d7dba26154fce83d (diff)
downloadvolse-hubzilla-837efcf5e73b7fbc81697bcb1257ef8cf6912cdd.tar.gz
volse-hubzilla-837efcf5e73b7fbc81697bcb1257ef8cf6912cdd.tar.bz2
volse-hubzilla-837efcf5e73b7fbc81697bcb1257ef8cf6912cdd.zip
fix fullscreen and bbco_autocomplete popup rendering
Diffstat (limited to 'view/js/autocomplete.js')
-rw-r--r--view/js/autocomplete.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js
index e33f6192b..313e501e2 100644
--- a/view/js/autocomplete.js
+++ b/view/js/autocomplete.js
@@ -70,6 +70,10 @@ function smiley_format(item) {
return "<div class='dropdown-item'>" + item.icon + ' ' + item.text + "</div>";
}
+function bbco_format(item) {
+ return "<div class='dropdown-item'>" + item + "</div>";
+}
+
function editor_replace(item) {
if(typeof item.replace !== 'undefined') {
return '$1$2' + item.replace;
@@ -326,7 +330,8 @@ function string2bb(element) {
else {
return '\[' + element + '\] ';
}
- }
+ },
+ template: bbco_format
};
this.attr('autocomplete','off');