(hopefully) fix switching of copyright message
authorRobert Kaiser <robert@widebook.box.kairo.at>
Fri, 7 Sep 2012 06:17:03 +0000 (08:17 +0200)
committerRobert Kaiser <robert@widebook.box.kairo.at>
Fri, 7 Sep 2012 06:17:03 +0000 (08:17 +0200)
js/map.js

index 8b4ffbb..48b1128 100644 (file)
--- a/js/map.js
+++ b/js/map.js
@@ -184,6 +184,8 @@ function setMapStyle() {
   if (mapSel.selectedIndex >= 0 && gActiveMap != mapSel.value) {
     gActiveMap = mapSel.value;
     gTiles = {};
+    document.getElementById("copyright").innerHTML =
+        gMapStyles[gActiveMap].copyright;
     drawMap();
   }
 }