Skip to content

Commit 8c4d791

Browse files
clicking over telemetry will pan to payload
1 parent 8dc23f2 commit 8c4d791

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

cache.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# version 57
2+
# version 58
33

44
# gogole maps files
55
http://maps.google.com/maps/api/js?v=3.10&sensor=false&key=AIzaSyCOqkcNey4CCyG4X0X5qxHAhCgD8g5DwXg

js/app.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,13 @@ $(window).ready(function() {
208208
return confirm("Launch your maps app?");
209209
});
210210

211-
// expand list items
211+
// follow vehicle by clicking on data
212+
$('#main').on('click', '.row .data', function() {
213+
var e = $(this).parent();
214+
followVehicle(parseInt(e.attr('class').match(/vehicle(\d+)/)[1]));
215+
});
216+
217+
// expand/collapse data when header is clicked
212218
$('#main').on('click', '.row .header', function() {
213219
var e = $(this).parent();
214220
if(e.hasClass('active')) {

0 commit comments

Comments
 (0)