changeset 305:585a8fb4a286 gmap2

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 11 Sep 2017 13:25:18 +0300
parents 2388ebb0567b
children 2f472f65d80a
files index.php lib/util.js
diffstat 2 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/index.php	Sat Jun 24 00:34:38 2017 +0300
+++ b/index.php	Mon Sep 11 13:25:18 2017 +0300
@@ -21,7 +21,8 @@
 $dataCopyrights = "Map data by BAT ry, Ggr, Slobber and Jeskko";
 
 
-$jsLibs = array(
+$jsLibs =
+[
   "map.js",
   "lib/util.js",
   "lib/markerwithlabel_packed.js",
@@ -30,9 +31,9 @@
   "icons.js",
   "markers.js",
   "nav.js",
-);
+];
 
-$jsTokens = array("x", "y", "zoom", "token", "name");
+$jsTokens = ["x", "y", "zoom", "token", "name"];
 
 
 //
@@ -105,9 +106,11 @@
 <?php
 
 foreach ($jsLibs as $libName)
+{
   echo "    <script type=\"text/javascript\" src=\"".$libName."\"></script>\n";
+}
 
-$jsData = array();
+$jsData = [];
 foreach ($jsTokens as $key)
 {
   if (isset($_GET[$key]) && strlen($_GET[$key]) > 0)
--- a/lib/util.js	Sat Jun 24 00:34:38 2017 +0300
+++ b/lib/util.js	Mon Sep 11 13:25:18 2017 +0300
@@ -38,7 +38,7 @@
      }
      else
      if (typeof(errcallback) == "function")
-      errcallback(status);
+       errcallback(status);
    }
  }