aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/autocomplete.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-04-05 15:27:45 +0200
committerMario Vavti <mario@mariovavti.com>2016-04-05 15:27:45 +0200
commitdeaf0e99fdd4edb1cccbcf721d34821927c50f3c (patch)
tree2af2b91f77f945d62f230dbc0911345ce9b36c79 /view/js/autocomplete.js
parentd99a1d8de0d21011879896a1cc2d9f3dd52b2bbd (diff)
downloadvolse-hubzilla-deaf0e99fdd4edb1cccbcf721d34821927c50f3c.tar.gz
volse-hubzilla-deaf0e99fdd4edb1cccbcf721d34821927c50f3c.tar.bz2
volse-hubzilla-deaf0e99fdd4edb1cccbcf721d34821927c50f3c.zip
expand list of bbcode in autocomplete
Diffstat (limited to 'view/js/autocomplete.js')
-rw-r--r--view/js/autocomplete.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js
index b6e81eb8c..a990ad187 100644
--- a/view/js/autocomplete.js
+++ b/view/js/autocomplete.js
@@ -202,14 +202,17 @@ function submit_form(e) {
$.fn.bbco_autocomplete = function(type) {
if(type=='bbcode') {
- var open_close_elements = ['b', 'i', 'u', 's', 'quote', 'code', 'spoiler', 'map', 'observer'];
- var open_elements = ['observer.photo', 'observer.name', 'observer.url'];
+ var open_close_elements = ['b', 'i', 'u', 's', 'quote', 'code', 'spoiler', 'map', 'nobb', 'list', 'ul', 'ol', 'table', 'tr', 'th', 'td', 'center', 'color', 'font', 'size', 'zrl', 'zmg', 'rpost', 'qr', 'observer',];
+ var open_elements = ['observer.baseurl', 'observer.address', 'observer.photo', 'observer.name', 'observer.webname', 'observer.url', '*', 'hr', ];
var elements = open_close_elements.concat(open_elements);
}
if(type=='comanche') {
- var elements = ['region', 'widget', 'var', 'template', 'css', 'js'];
+ var open_close_elements = ['region', 'widget', 'var', 'template', 'css', 'js'];
+ var open_elements = [];
+
+ var elements = open_close_elements.concat(open_elements);
}
bbco = {