summaryrefslogtreecommitdiffstats
path: root/templates/html_editor_scripts_css.html
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2023-07-05 13:18:02 +0100
committerMartin Green <martin.speleo@gmail.com>2023-07-05 13:18:02 +0100
commitc4095eb336d1de8d037a15809e3610989b3392bd (patch)
treee89320814861abd7efed2c464faf40b7e0fe58c6 /templates/html_editor_scripts_css.html
parent7268eb4f30e6c18f2193bc114d898a6aeb734b08 (diff)
downloadtroggle-c4095eb336d1de8d037a15809e3610989b3392bd.tar.gz
troggle-c4095eb336d1de8d037a15809e3610989b3392bd.tar.bz2
troggle-c4095eb336d1de8d037a15809e3610989b3392bd.zip
Have images saved to correct place, when edited in the cave or entrance view. etc
Diffstat (limited to 'templates/html_editor_scripts_css.html')
-rw-r--r--templates/html_editor_scripts_css.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/html_editor_scripts_css.html b/templates/html_editor_scripts_css.html
index 8634958..d3ddc68 100644
--- a/templates/html_editor_scripts_css.html
+++ b/templates/html_editor_scripts_css.html
@@ -173,11 +173,14 @@
function add_image_popup(editor) {
$('.add-image-popup').addClass('active');
window.current_editor = editor;
+ var path = ""; //Can we get rid of this variable?
+ /*
{% if not path %}
var path = $("#id_url").val();
{% else %}
var path = "";
{% endif %}
+ */
$('#image_popup_content').load("{% url 'image_selector' path %}" + path, function() {
$('.thumbnail').click(function(){
$(".add-image-popup").removeClass("active");