[mapguide-commits] r6741 - branches/2.4/MgDev/Web/src/viewerfiles
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Sun Jun 10 21:25:56 PDT 2012
Author: jng
Date: 2012-06-10 21:25:56 -0700 (Sun, 10 Jun 2012)
New Revision: 6741
Modified:
branches/2.4/MgDev/Web/src/viewerfiles/ajaxmappane.templ
Log:
#1983: Apply trevor's patch
Modified: branches/2.4/MgDev/Web/src/viewerfiles/ajaxmappane.templ
===================================================================
--- branches/2.4/MgDev/Web/src/viewerfiles/ajaxmappane.templ 2012-06-10 08:38:17 UTC (rev 6740)
+++ branches/2.4/MgDev/Web/src/viewerfiles/ajaxmappane.templ 2012-06-11 04:25:56 UTC (rev 6741)
@@ -2221,11 +2221,16 @@
function MapTip()
{
- var idxes = parent.tbFrame.GetMapTipButtons();
+ var idxes = null;
+ if (typeof parent.tbFrame.GetMapTipButtons == 'function')
+ {
+ idxes = parent.tbFrame.GetMapTipButtons();
+ }
+
if(!haveTooltip)
{
haveTooltip = true;
- for (var i = 0; i < idxes.length; i++) {
+ for (var i = 0; idxes != null && i < idxes.length; i++) {
var maptipBtn = parent.tbFrame.document.getElementById(idxes[i]);
//The tooltip is enabled.
//highlight the maptip button via change the background and the border color
@@ -2242,7 +2247,7 @@
var tip = document.getElementById("hlTip");
if (tip != null)
tip.style.display = 'none';
- for (var i = 0; i < idxes.length; i++) {
+ for (var i = 0; idxes != null && i < idxes.length; i++) {
var maptipBtn = parent.tbFrame.document.getElementById(idxes[i]);
//disable the tooltip
//change back the background and border color
More information about the mapguide-commits
mailing list