minor whitespace

Andrew Cantino 10 anos atrás
pai
commit
fae25f278c
1 arquivos alterados com 25 adições e 26 exclusões
  1. 25 26
      app/views/agents/agent_views/user_location_agent/_show.html.erb

+ 25 - 26
app/views/agents/agent_views/user_location_agent/_show.html.erb

@@ -12,44 +12,43 @@
12 12
   <script type="text/javascript">
13 13
     var mapOptions = {
14 14
       center: new google.maps.LatLng(<%= events.first.lat %>, <%= events.first.lng %>),
15
-      zoom:15,
16
-      mapTypeId:google.maps.MapTypeId.ROADMAP
15
+      zoom: 15,
16
+      mapTypeId: google.maps.MapTypeId.ROADMAP
17 17
     };
18 18
 
19 19
     var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
20 20
     var circles = [];
21 21
     var points = [];
22 22
     <% events.each do |event| %>
23
-    var loc = <%= Utils.jsonify(event.location) %>;
24
-    if (loc.radius > 1) {
23
+      var loc = <%= Utils.jsonify(event.location) %>;
24
+      if (loc.radius > 1) {
25 25
         circles.push(map_marker(map, loc));
26
-    }
27
-    delete loc.radius;
28
-    points.push(map_marker(map, loc));
26
+      }
27
+      delete loc.radius;
28
+      points.push(map_marker(map, loc));
29 29
     <% end %>
30 30
 
31 31
     function toggleAccuracy(group, map) {
32
-        for (var i = 0; i < group.length; i++) {
33
-            group[i].setMap(map);
34
-        }
32
+      for (var i = 0; i < group.length; i++) {
33
+        group[i].setMap(map);
34
+      }
35 35
     }
36 36
 
37 37
     toggleAccuracy(circles, null);
38 38
 
39 39
     $(document).ready(function() {
40
-        $("input#toggle").on("click", function() {
41
-            if($(this).is(":checked")){
42
-                toggleAccuracy(circles, map);
43
-                toggleAccuracy(points, null);
44
-            }
45
-            else {
46
-                toggleAccuracy(circles, null);
47
-                toggleAccuracy(points, map);
48
-            }
49
-        });
50
-        if(circles.length > 0){
51
-            $(".toggle-accuracy").removeClass("hidden");
40
+      $("input#toggle").on("click", function() {
41
+        if($(this).is(":checked")){
42
+          toggleAccuracy(circles, map);
43
+          toggleAccuracy(points, null);
44
+        } else {
45
+          toggleAccuracy(circles, null);
46
+          toggleAccuracy(points, map);
52 47
         }
48
+      });
49
+      if(circles.length > 0){
50
+        $(".toggle-accuracy").removeClass("hidden");
51
+      }
53 52
     });
54 53
 
55 54
   </script>
@@ -60,10 +59,10 @@
60 59
 <% end %>
61 60
 
62 61
 <div class="hidden toggle-accuracy checkbox">
63
-    <label>
64
-        <input id="toggle" type="checkbox" value="">
65
-        Show accuracy of locations
66
-    </label>
62
+  <label>
63
+    <input id="toggle" type="checkbox" value="">
64
+    Show accuracy of locations
65
+  </label>
67 66
 </div>
68 67
 
69 68
 <h3>POST URL</h3>