diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-04-30 21:19:43 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-04-30 21:19:43 +0200 |
commit | 8189a7c6934eac96d430dcb2d3ae3c2a99c4518d (patch) | |
tree | dfad76acbf704f6690ab39a308fb4dee426a3ec4 | |
parent | ab17b2e0d68cbd7e7fdbb510b4cc20a202077586 (diff) | |
download | volse-hubzilla-8189a7c6934eac96d430dcb2d3ae3c2a99c4518d.tar.gz volse-hubzilla-8189a7c6934eac96d430dcb2d3ae3c2a99c4518d.tar.bz2 volse-hubzilla-8189a7c6934eac96d430dcb2d3ae3c2a99c4518d.zip |
add dl bbcode to the expanded autocomplete
-rw-r--r-- | view/js/autocomplete.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index ca51230df..41077d427 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -103,7 +103,7 @@ function submit_form(e) { function getWord(text, caretPos) { var index = text.indexOf(caretPos); var postText = text.substring(caretPos, caretPos+8); - if ((postText.indexOf("[/list]") > 0) || postText.indexOf("[/ul]") > 0 || postText.indexOf("[/ol]") > 0) { + if ((postText.indexOf('[/list]') > 0) || postText.indexOf('[/ul]') > 0 || postText.indexOf('[/ol]') > 0 || postText.indexOf('[/dl]') > 0) { return postText; } } @@ -296,7 +296,7 @@ function string2bb(element) { replace: function (element) { element = string2bb(element); if(open_elements.indexOf(element) < 0) { - if(element === 'list' || element === 'ol' || element === 'ul') { + if(element === 'list' || element === 'ol' || element === 'ul' || element === 'dl') { return ['\[' + element + '\]' + '\n\[*\] ', '\n\[/' + element + '\]']; } else if(element === 'table') { |