[Mapbender-commits] r3196 - branches/noframes/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Nov 7 05:03:10 EST 2008
Author: christoph
Date: 2008-11-07 05:03:10 -0500 (Fri, 07 Nov 2008)
New Revision: 3196
Modified:
branches/noframes/http/javascripts/map.php
branches/noframes/http/javascripts/mod_switchLocale_noreload.php
Log:
Code conventions: "Mapbender" is an object, so use capital "M"
Modified: branches/noframes/http/javascripts/map.php
===================================================================
--- branches/noframes/http/javascripts/map.php 2008-11-07 10:01:25 UTC (rev 3195)
+++ branches/noframes/http/javascripts/map.php 2008-11-07 10:03:10 UTC (rev 3196)
@@ -55,13 +55,13 @@
echo "var mb_myLogin = '".$_SESSION["mb_login"]."';";
echo "var mb_styleID = '".md5($_SESSION["mb_user_name"])."';";
echo "var mb_myBBOX = '".$_SESSION["mb_myBBOX"]."';";
-echo "var mapbender = {};";
-echo "mapbender.locale = '" . $_SESSION["mb_locale"] . "';";
-echo "mapbender.languageId = '" . $_SESSION["mb_lang"] . "';";
-echo "mapbender.versionNumber = '" . MB_VERSION_NUMBER . "';";
-echo "mapbender.versionAppendix = '" . MB_VERSION_APPENDIX . "';";
-echo "mapbender.releaseDate = new Date(".date("Y",MB_RELEASE_DATE).",".date("n",MB_RELEASE_DATE).",".date("j",MB_RELEASE_DATE).");";
-echo "mapbender.zoomMousewheel = " . ZOOM_MOUSEWHEEL . ";";
+echo "var Mapbender = {};";
+echo "Mapbender.locale = '" . $_SESSION["mb_locale"] . "';";
+echo "Mapbender.languageId = '" . $_SESSION["mb_lang"] . "';";
+echo "Mapbender.versionNumber = '" . MB_VERSION_NUMBER . "';";
+echo "Mapbender.versionAppendix = '" . MB_VERSION_APPENDIX . "';";
+echo "Mapbender.releaseDate = new Date(".date("Y",MB_RELEASE_DATE).",".date("n",MB_RELEASE_DATE).",".date("j",MB_RELEASE_DATE).");";
+echo "Mapbender.zoomMousewheel = " . ZOOM_MOUSEWHEEL . ";";
echo "var owsproxy = '".OWSPROXY."';";
echo "var global_mb_log_js = '".LOG_JS."';";
echo "var global_mb_log_level = '".LOG_LEVEL."';";
Modified: branches/noframes/http/javascripts/mod_switchLocale_noreload.php
===================================================================
--- branches/noframes/http/javascripts/mod_switchLocale_noreload.php 2008-11-07 10:01:25 UTC (rev 3195)
+++ branches/noframes/http/javascripts/mod_switchLocale_noreload.php 2008-11-07 10:03:10 UTC (rev 3196)
@@ -31,7 +31,7 @@
var index = document.getElementById("language").selectedIndex;
var lang = document.getElementById("language").options[index].value;
mb_ajax_post("../php/mod_setLocale.php", {"lang":lang}, function(result, status) {
- mapbender.locale = result;
+ Mapbender.locale = result;
eventLocalize.trigger();
});
}
@@ -51,4 +51,4 @@
var currentOption = new Option(languageArray[i], languageArray[i], selected, selected);
localeSelectNode.options[i] = currentOption;
}
-});
\ No newline at end of file
+});
More information about the Mapbender_commits
mailing list