From 14075c7c744bb80da7f25c28f8c4f1322f30a69e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 15 Jul 2024 16:18:14 +0200 Subject: ✨ Find: add the ability to configure a "+ find without context" button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/templates/gis/openlayers-osm.html | 7 +++++-- ishtar_common/templates/ishtar/wizard/default_wizard.html | 9 +++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/gis/openlayers-osm.html b/ishtar_common/templates/gis/openlayers-osm.html index 4ed773a33..59969210a 100644 --- a/ishtar_common/templates/gis/openlayers-osm.html +++ b/ishtar_common/templates/gis/openlayers-osm.html @@ -35,8 +35,11 @@ groupSelectStyle: 'children' }); {{ module }}.map.addControl(layer_switcher); - $(".ol-viewport").parent().width($(".form").width()); - $(document).ready(function() { + {% comment %}$(".ol-viewport").parent().width($(".form").width());{% endcomment %} + let ol_viewport = document.querySelector(".ol-viewport"); + if (ol_viewport.parent) ol_viewport.parent().width(document.querySelector(".form").width()); + {% comment %}$(document).ready(function() { {% endcomment %} + document.addEventListener("DOMContentLoaded", function() { {{ module }}.map.updateSize(); let features = {{ module }}.featureOverlay.getSource().getFeatures(); if (features.length){ diff --git a/ishtar_common/templates/ishtar/wizard/default_wizard.html b/ishtar_common/templates/ishtar/wizard/default_wizard.html index c4a304111..0d3863af9 100644 --- a/ishtar_common/templates/ishtar/wizard/default_wizard.html +++ b/ishtar_common/templates/ishtar/wizard/default_wizard.html @@ -6,6 +6,15 @@ {% block content %} {% block wizard_head %}

{{wizard_label}}

+{% if no_context_cr %} +
+ +
+{% endif %} {% include "ishtar/blocks/wizard_breadcrumb.html" %} -- cgit v1.2.3