(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 8b4ffbbd0aead264d492d60b0d9c8d5d1090b547..48b1128ac66cfee0d651977b763dab9fab98da49 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();
   }
 }