Projet

Général

Profil

0001-misc-allow-for-less-accurate-geolocation-13588.patch

Frédéric Péters, 13 octobre 2016 14:58

Télécharger (1,73 ko)

Voir les différences:

Subject: [PATCH] misc: allow for less accurate geolocation (#13588)

 wcs/qommon/static/js/qommon.geolocation.js | 4 +++-
 wcs/qommon/static/js/qommon.map.js         | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)
wcs/qommon/static/js/qommon.geolocation.js
188 188
          $('div[data-geolocation] label').removeClass('activity');
189 189
          $($('div[data-geolocation] label')[0]).after(
190 190
                          '<span class="geoloc-error">' + error_msg.message + '</span>');
191
        });
191
        },
192
        {timeout: 10000, maximumAge: 300000, enableHighAccuracy: false}
193
      );
192 194
    }
193 195
  }
194 196
});
wcs/qommon/static/js/qommon.map.js
70 70
         $map_widget.parent().parent().find('label').after('<span class="geoloc-error">' + message + '</span>');
71 71
       });
72 72
       $map_widget.parent().parent().find('label').addClass('activity')
73
       map.locate({timeout: 10000, maximumAge: 60000});
73
       map.locate({timeout: 10000, maximumAge: 300000, enableHighAccuracy: false});
74 74
     }
75 75
     if ($(this).data('geojson-url')) {
76 76
       $.getJSON($(this).data('geojson-url'), function(data) {
77
-