diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-04-05 15:27:45 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-04-05 15:27:45 +0200 |
commit | deaf0e99fdd4edb1cccbcf721d34821927c50f3c (patch) | |
tree | 2af2b91f77f945d62f230dbc0911345ce9b36c79 /view/js | |
parent | d99a1d8de0d21011879896a1cc2d9f3dd52b2bbd (diff) | |
download | volse-hubzilla-deaf0e99fdd4edb1cccbcf721d34821927c50f3c.tar.gz volse-hubzilla-deaf0e99fdd4edb1cccbcf721d34821927c50f3c.tar.bz2 volse-hubzilla-deaf0e99fdd4edb1cccbcf721d34821927c50f3c.zip |
expand list of bbcode in autocomplete
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/autocomplete.js | 9 |
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 = { |