Projet

Général

Profil

0001-map-trigger-an-explicit-wcs-change-js-event-28575.patch

Thomas Noël, 04 décembre 2018 15:27

Télécharger (1,1 ko)

Voir les différences:

Subject: [PATCH] map: trigger an explicit wcs:change js event (#28575)

 wcs/qommon/static/js/qommon.map.js | 2 ++
 1 file changed, 2 insertions(+)
wcs/qommon/static/js/qommon.map.js
68 68
       }
69 69
       map.marker.setLatLng(coords);
70 70
       hidden.val(coords.lat + ';' + coords.lng);
71
       hidden.trigger('wcs:change');
71 72
     });
72 73
     $map_widget.on('qommon:invalidate', function() {
73 74
       map.invalidateSize();
......
83 84
         }
84 85
         if (map.marker === null) {
85 86
           hidden.val(e.latlng.lat + ';' + e.latlng.lng);
87
           hidden.trigger('wcs:change');
86 88
           map.setView(e.latlng, map_options.zoom);
87 89
           if (position_prefil) {
88 90
             map.setView(e.latlng, 16);
89
-