[Mapbender-commits] r2968 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Sep 18 05:24:11 EDT 2008
Author: verenadiewald
Date: 2008-09-18 05:24:11 -0400 (Thu, 18 Sep 2008)
New Revision: 2968
Modified:
trunk/mapbender/http/javascripts/map.js
Log:
featureInfo1 didn't work anymore: http://trac.osgeo.org/mapbender/ticket/297
Modified: trunk/mapbender/http/javascripts/map.js
===================================================================
--- trunk/mapbender/http/javascripts/map.js 2008-09-18 09:23:53 UTC (rev 2967)
+++ trunk/mapbender/http/javascripts/map.js 2008-09-18 09:24:11 UTC (rev 2968)
@@ -438,32 +438,22 @@
}
else if(validation){
newfeatureInfoRequest += requestParams;
- (function () {
- var currentRequest = newfeatureInfoRequest;
- mb_ajax_post(path,{url:currentRequest},function(js_code,status){
- if(js_code){
- try{
- var p = new mb_popup({
- title:"Feature Info",
- url:currentRequest,
- width:600,
- height:500,
- top:200,
- left:600
- });
- p.show();
- }
- catch(e){
- window.open(currentRequest, "" , "width=300,height=400,scrollbars=yes,resizable=yes");
- }
- }
- else{
- var e = new Mb_exception("No featureInfo results.");
- }
+ try{
+ var p = new mb_popup({
+ title:"Feature Info",
+ url:newfeatureInfoRequest,
+ width:600,
+ height:500,
+ top:200,
+ left:600
});
- }());
+ p.show();
+ }
+ catch(e){
+ window.open(newfeatureInfoRequest, "" , "width=300,height=400,scrollbars=yes,resizable=yes");
+ }
cnt_fi++;
- }
+ }
}
}
}
More information about the Mapbender_commits
mailing list