Commit dc6dffd5 authored by Antoine Grinenwald's avatar Antoine Grinenwald

Bug 743 : Remove the pop-up asking user for his geolocation in metadata...

Bug 743 : Remove the pop-up asking user for his geolocation in metadata portlet. Deleted the argument from the function called after that.

git-svn-id: svn://svn.forge.objectweb.org/svnroot/weblab/trunk/WebLabServices/Portlets/metadata-portlet@4349 a803c184-d8de-4a0e-a52b-d3eef88212b6
parent bc152d33
......@@ -10,7 +10,7 @@
* @date : <2015.09.03>
*************************************************************************/
function openLayerMap(geolocationIsActivate, serverUrlPrefix) {
function openLayerMap(serverUrlPrefix) {
if (jQuery('#longEdit').length){
var htmlLon = jQuery('#longEdit');
......@@ -74,12 +74,6 @@ function openLayerMap(geolocationIsActivate, serverUrlPrefix) {
view: view
});
if(geolocationIsActivate) {
if(navigator.geolocation) {
navigator.geolocation.getCurrentPosition(centerToGeolocation);
}
}
map.on('singleclick', function (evt) {
if (jQuery('#longEdit').length){
console.log("map editable");
......
......@@ -493,8 +493,7 @@
jQuery(document).ready(
function() {
openLayerMap(true,
'${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}');
openLayerMap('${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}');
jQuery(".extraRow, .error").hide();
......
......@@ -495,7 +495,6 @@
<script type="text/javascript">
jQuery(document).ready(function() {
openLayerMap(
true,
'${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}');
jQuery("#buttonAdd").click(function($) {
jQuery("#editView").slideDown(function() {
......
Markdown is supported
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