Skip to content

Commit 711573a

Browse files
reset nite-overlay on mouseout of graph box
1 parent 5f7f9a1 commit 711573a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
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 281
2+
# version 283
33

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

js/app.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,15 @@ $(window).ready(function() {
278278
});
279279
});
280280

281+
// expand graph on startup, if nessary
282+
if(embed.graph_expanded) $('#telemetry_graph .graph_label').click();
283+
284+
// reset nite-overlay when mouse goes out of the graph box
285+
$("#telemetry_graph").on('mouseout','.holder', function() {
286+
nite.setDate(null);
287+
nite.refresh();
288+
});
289+
281290
// hand cursor for dragging the vehicle list
282291
$("#main").on("mousedown", ".row", function () {
283292
$("#main").addClass("drag");
@@ -286,8 +295,6 @@ $(window).ready(function() {
286295
$("#main").removeClass("drag");
287296
});
288297

289-
if(embed.graph_expanded) $('#telemetry_graph .graph_label').click();
290-
291298
// confirm dialog when launchnig a native map app with coordinates
292299
$('#main').on('click', '#launch_mapapp', function() {
293300
var answer = confirm("Launch your maps app?");

0 commit comments

Comments
 (0)