Skip to content
Snippets Groups Projects
Commit f47bf8b1 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

hotline #72999 call openStreetmap js plugin after reloading widget

parent c88330d1
Branches
Tags
2 merge requests!2660Master,!2587hotline #72999 call openStreetmap js plugin after reloading widget
Pipeline #3840 passed with stage
in 32 minutes and 4 seconds
- ticket #72999 : Boite biliothèque : correction de l'affichage de la carte OpenStreetMap en pagination.
\ No newline at end of file
......@@ -97,3 +97,9 @@
widget.ajaxComplete(loadMap);
}
} (jQuery))
function initOpenStreetMap(widget) {
if (0 < $(widget).find(".leaflet_osm").length)
widget.openStreetMap();
}
(function($) {
$.fn.reload = function(url) {
var boite = $(this);
$.get(url, function(data) {
var new_content= $(data).children();
boite.empty().append(new_content);
initializeDivisionFive();
initializePopups();
initializeReloadModule();
initOpenStreetMap(boite);
setupAnchorsTarget();
boite
.boiteSlideToRight()
......@@ -16,7 +18,6 @@
}
})(jQuery);
function initializeReloadModule() {
$('.boite a[data-ajax-reload="true"]').click(function(event) {
event.preventDefault();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment