[Mapbender-commits] r2965 - branches/2.5/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Sep 18 05:21:29 EDT 2008
Author: verenadiewald
Date: 2008-09-18 05:21:29 -0400 (Thu, 18 Sep 2008)
New Revision: 2965
Modified:
branches/2.5/http/javascripts/map.js
Log:
featureInfo1 didn't work anymore: http://trac.osgeo.org/mapbender/ticket/297
Modified: branches/2.5/http/javascripts/map.js
===================================================================
--- branches/2.5/http/javascripts/map.js 2008-09-17 14:56:01 UTC (rev 2964)
+++ branches/2.5/http/javascripts/map.js 2008-09-18 09:21:29 UTC (rev 2965)
@@ -1048,32 +1048,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