maps: fix attribute name init_with_geoloc (#57610)
This commit is contained in:
parent
7c3b994254
commit
1e7f76648a
|
@ -138,7 +138,7 @@ $(window).on('load', function() {
|
|||
});
|
||||
var is_preview = $('.form-preview').length == 1;
|
||||
position_prefil = $map_widget.parent().parent().data('geolocation') == 'position';
|
||||
if (! ($map_widget.data('readonly') || is_preview) && ($map_widget.data('init-with-geoloc') || position_prefil)) {
|
||||
if (! ($map_widget.data('readonly') || is_preview) && ($map_widget.data('init_with_geoloc') || position_prefil)) {
|
||||
$map_widget.addClass('waiting-for-geolocation');
|
||||
$map_widget.removeClass('geolocation-error');
|
||||
map.on('locationfound', function(e) {
|
||||
|
|
Loading…
Reference in New Issue