[Mapbender-commits] r4552 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Aug 28 08:43:47 EDT 2009
Author: christoph
Date: 2009-08-28 08:43:47 -0400 (Fri, 28 Aug 2009)
New Revision: 4552
Modified:
trunk/mapbender/http/javascripts/ovnf.php
Log:
fixed: IE bug and selArea bug
Modified: trunk/mapbender/http/javascripts/ovnf.php
===================================================================
--- trunk/mapbender/http/javascripts/ovnf.php 2009-08-28 12:42:59 UTC (rev 4551)
+++ trunk/mapbender/http/javascripts/ovnf.php 2009-08-28 12:43:47 UTC (rev 4552)
@@ -52,13 +52,22 @@
});
function mod_ovSetHandler(e){
- mb_isBF = 'overview';
- mb_zF = options.target;
+ var targetId = $.browser.msie ? window.event.srcElement.id : e.target.id;
+ if(!mb_isActive){
+ mb_isBF = options.id;
+ mb_zF = options.target;
+ return false;
+ }
+ return true;
}
function mod_ovGetExtent(e){
- mb_isBF = 'overview';
- mb_zF = options.target;
- mod_box_setValidClipping(mod_box_stop(e));
+ var targetId = $.browser.msie ? window.event.srcElement.id : e.target.id;
+ if(targetId.substr(0, mb_isBF.length) === mb_isBF){
+ mb_zF = options.target;
+ mod_box_setValidClipping(mod_box_stop(e));
+ return false;
+ }
+ return true;
}
eventAfterMapRequest.register(function () {
@@ -80,7 +89,9 @@
var px2 = pointMax.x;
var py2 = pointMax.y;
- mb_isBF = "overview";
+ var tmp_mb_isBF = mb_isBF;
+ var tmp_mb_zF = mb_zF;
+ mb_isBF = options.id;
mb_zF = options.target;
while((px2 - px1) < 8){
@@ -105,6 +116,9 @@
if(py2 < 0){py2 = 1;}
mb_drawBox(px1,py1,px2,py2);
+ mb_isBF = tmp_mb_isBF;
+ mb_zF = tmp_mb_zF;
+
});
More information about the Mapbender_commits
mailing list