[mapguide-commits] r6549 - trunk/MgDev/Web/src/viewerfiles

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Mar 15 08:22:05 EDT 2012


Author: jng
Date: 2012-03-15 05:22:05 -0700 (Thu, 15 Mar 2012)
New Revision: 6549

Modified:
   trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ
Log:
#1969: Comment out alert() calls in ajaxmappane.templ. Most of these alerts are the result of bad image rendering requests (caused by bad width/height/dpi parameters). There is no real consequences of these bad requests for users, so displaying an intrusive alert dialog is not necessary. Such bad requests would be logged by your standard web dev tools anyway.

Modified: trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ
===================================================================
--- trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ	2012-03-15 11:56:36 UTC (rev 6548)
+++ trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ	2012-03-15 12:22:05 UTC (rev 6549)
@@ -1942,7 +1942,7 @@
         objDivRefresh.style.display='none';
     }
     mapLoading = false;
-
+/*
     var text = this.req.responseText;
     
     var message = text;
@@ -1957,7 +1957,7 @@
     }
 
     alert(message);
-
+*/
     return false;
 }
 
@@ -2001,7 +2001,7 @@
 }
 
 function OnSelectionOverlayImageLoadedError(e)
-{
+{/*
     var text = this.req.responseText;
     
     var messageErr = "";
@@ -2017,7 +2017,7 @@
         messageErr = "No feature available.";
 
     alert(messageErr);
-
+*/
     return false;
 }
 
@@ -2105,7 +2105,7 @@
 }
 
 function RequestFailed(text)
-{  
+{  /*
     var message = text;
     var startPos = text.indexOf("<h2>");
     if(startPos != -1)
@@ -2118,7 +2118,7 @@
     
     isAlertShow = true;
     alert(message);
-    isAlertShow = false;
+    isAlertShow = false;*/
 }
 
 function DraggingShape(e)



More information about the mapguide-commits mailing list