[hamradio-commits] [dump1090] 241/373: "Reset Map" deselects plane correctly.

Matthew Ernisse mernisse-guest at moszumanska.debian.org
Thu Oct 23 14:58:24 UTC 2014


This is an automated email from the git hooks/post-receive script.

mernisse-guest pushed a commit to branch backport
in repository dump1090.

commit 0e3426d46b3a588df3d9b08bca5febb21dc408a7
Author: terribl <terri at rannalla.net>
Date:   Fri May 31 10:29:51 2013 +0300

    "Reset Map" deselects plane correctly.
    
    	modified:   public_html/script.js
---
 public_html/script.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/public_html/script.js b/public_html/script.js
index ca3faa8..f7d828e 100644
--- a/public_html/script.js
+++ b/public_html/script.js
@@ -570,7 +570,11 @@ function resetMap() {
     // Set and refresh
 	GoogleMap.setZoom(parseInt(ZoomLvl));
 	GoogleMap.setCenter(new google.maps.LatLng(parseFloat(CenterLat), parseFloat(CenterLon)));
-	Selected = null;
+	
+	if (SelectedPlane) {
+	    selectPlaneByHex(SelectedPlane);
+	}
+
 	refreshSelected();
 	refreshTableInfo();
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git



More information about the pkg-hamradio-commits mailing list