[Mapbender-commits] r4614 - trunk/mapbender/lib
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Sep 10 11:56:12 EDT 2009
Author: christoph
Date: 2009-09-10 11:56:11 -0400 (Thu, 10 Sep 2009)
New Revision: 4614
Modified:
trunk/mapbender/lib/exception.js
Log:
do not use console if firebug is not active
Modified: trunk/mapbender/lib/exception.js
===================================================================
--- trunk/mapbender/lib/exception.js 2009-09-10 15:55:34 UTC (rev 4613)
+++ trunk/mapbender/lib/exception.js 2009-09-10 15:56:11 UTC (rev 4614)
@@ -41,10 +41,15 @@
else if (log_js == "alert") {
alert(message);
}
- else if (log_js == "console") {
+ else if (log_js == "console" &&
+ typeof window.console !== "undefined") {
+
if ($.browser.msie) {
try {
- mb_ajax_post('../php/mb_js_exception.php', {level:level,text:message});
+ mb_ajax_post('../php/mb_js_exception.php', {
+ level:level,
+ text:message
+ });
}
catch(e) {
alert(e + ": " + message);
More information about the Mapbender_commits
mailing list