From e46c36b19b16ef12123fa96187efd65eefebc106 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Thu, 10 Jul 2014 11:49:27 +0200 Subject: [PATCH] Use uniformingly jQuery instead of $ --- .../Resources/assets/js/events.js | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Hackspace/Bundle/CalciferBundle/Resources/assets/js/events.js b/src/Hackspace/Bundle/CalciferBundle/Resources/assets/js/events.js index bc722d8..b7a1dcc 100755 --- a/src/Hackspace/Bundle/CalciferBundle/Resources/assets/js/events.js +++ b/src/Hackspace/Bundle/CalciferBundle/Resources/assets/js/events.js @@ -8,9 +8,9 @@ function addGeoCoordinates(ev) { return false; } var map = null; -$(document).ready(function () { - if ($('.icon.link').length > 0) { - $('.icon.link').popup(); +jQuery(document).ready(function () { + if (jQuery('.icon.link').length > 0) { + jQuery('.icon.link').popup(); } if (jQuery('input[type=datetime]').length > 0) { @@ -18,7 +18,7 @@ $(document).ready(function () { } if (jQuery('#map').length == 1) { - $('.add_geo').click(addGeoCoordinates); + jQuery('.add_geo').click(addGeoCoordinates); map = L.map('map'); // add an OpenStreetMap tile layer @@ -42,22 +42,22 @@ $(document).ready(function () { map.on('click', onMapClick); - $('.geo.chooser').modal('setting', { + jQuery('.geo.chooser').modal('setting', { closable: false, onApprove: function () { var coords = marker.getLatLng(); - $('input[name=location_lat]').val(coords.lat); - $('input[name=location_lon]').val(coords.lng); - $('input[name=location]').css('margin-bottom', '3.2rem'); - $('span.coords').text('Folgende Koordinaten sind angegeben: lat:' + coords.lat + ', lon:' + coords.lng); + jQuery('input[name=location_lat]').val(coords.lat); + jQuery('input[name=location_lon]').val(coords.lng); + jQuery('input[name=location]').css('margin-bottom', '3.2rem'); + jQuery('span.coords').text('Folgende Koordinaten sind angegeben: lat:' + coords.lat + ', lon:' + coords.lng); }, onDeny: function () { }, onVisible: function () { map.invalidateSize(true); - var lat = parseFloat($('input[name=location_lat]').val()); - var lon = parseFloat($('input[name=location_lon]').val()); + var lat = parseFloat(jQuery('input[name=location_lat]').val()); + var lon = parseFloat(jQuery('input[name=location_lon]').val()); if ((lat > 0) && (lon > 0)) { map.setView([lat, lon], 16); var latlng = new L.LatLng(lat, lon);