summaryrefslogtreecommitdiff
path: root/design/templates
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-02-02 16:49:46 -0600
committerluxagraf <sng@luxagraf.net>2018-02-02 16:49:46 -0600
commit962b21e04e1f69039003cfa4f08d18ee1df500b6 (patch)
treeeb0bb36aa2151a746062428d5bff2092f5665255 /design/templates
parent401c90364b76f2ad5a37e489ccdefc6be38fe1ac (diff)
more bug fixes
Diffstat (limited to 'design/templates')
-rw-r--r--design/templates/admin/insert_images.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/design/templates/admin/insert_images.html b/design/templates/admin/insert_images.html
index 192feb9..8f393b1 100644
--- a/design/templates/admin/insert_images.html
+++ b/design/templates/admin/insert_images.html
@@ -95,7 +95,7 @@ Array.from(document.getElementsByClassName('insert')).forEach(function(item) {
} else {
var code = buildImage(item.dataset.src, item.dataset.id, item.dataset.class, item.dataset.caption);
}
- item.addEventListener("click", function( event ) {
+ item.addEventListener("click", function(event) {
var el = parent.document.getElementById('{{textarea_id}}');
var start = el.selectionStart;
var end = el.selectionEnd;
@@ -103,7 +103,6 @@ Array.from(document.getElementsByClassName('insert')).forEach(function(item) {
var before = text.substring(0, start);
var after = text.substring(end, text.length);
el.value = (before + code + after);
- console.log(code);
el.selectionStart = el.selectionEnd = start + code.length;
el.focus();
return false;