2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-16 06:07:07 +00:00

Have images saved to correct place, when edited in the cave or entrance view. etc

This commit is contained in:
Martin Green
2023-07-05 13:18:02 +01:00
parent 7268eb4f30
commit c4095eb336
3 changed files with 6 additions and 1 deletions

View File

@@ -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");