Skip to content

Commit

Permalink
Update map_layers.js
Browse files Browse the repository at this point in the history
to use the functionality on modal
  • Loading branch information
mumualex committed Jun 13, 2013
1 parent 5f6a334 commit 3de8432
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions vendor/assets/javascripts/map_layers.js
Expand Up @@ -16,8 +16,7 @@ function mapLayersLoadingJquery() {
return $('.map_container .loading');
}

// OPTIMIZE: remove jquery dependency
$(function() {
function mapLayersInitializer(){

// add the loader indicator
$('.map_layers.localize').submit(function(){
Expand Down Expand Up @@ -63,7 +62,7 @@ $(function() {
return false;
});

});
}


// Fill a form using OpenLayers
Expand All @@ -77,3 +76,9 @@ function mapLayersFillFormWithLonlat(map_name, lat, lon) {
$(form).find('.latitude_field').val(lat);
$(form).find('.longitude_field').val(lon);
}


// OPTIMIZE: remove jquery dependency
$(function() {
mapLayersInitializer();
});

0 comments on commit 3de8432

Please sign in to comment.