aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-04-30 21:19:43 +0200
committerMario Vavti <mario@mariovavti.com>2016-04-30 21:19:43 +0200
commit8189a7c6934eac96d430dcb2d3ae3c2a99c4518d (patch)
treedfad76acbf704f6690ab39a308fb4dee426a3ec4 /view/js
parentab17b2e0d68cbd7e7fdbb510b4cc20a202077586 (diff)
downloadvolse-hubzilla-8189a7c6934eac96d430dcb2d3ae3c2a99c4518d.tar.gz
volse-hubzilla-8189a7c6934eac96d430dcb2d3ae3c2a99c4518d.tar.bz2
volse-hubzilla-8189a7c6934eac96d430dcb2d3ae3c2a99c4518d.zip
add dl bbcode to the expanded autocomplete
Diffstat (limited to 'view/js')
-rw-r--r--view/js/autocomplete.js4
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') {