[Mapbender-commits] r5085 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Dec 8 11:26:19 EST 2009


Author: christoph
Date: 2009-12-08 11:26:18 -0500 (Tue, 08 Dec 2009)
New Revision: 5085

Modified:
   trunk/mapbender/http/javascripts/mod_ResultList.js
Log:


Modified: trunk/mapbender/http/javascripts/mod_ResultList.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_ResultList.js	2009-12-08 15:59:25 UTC (rev 5084)
+++ trunk/mapbender/http/javascripts/mod_ResultList.js	2009-12-08 16:26:18 UTC (rev 5085)
@@ -5,7 +5,7 @@
 	//store a callback for the function to call when a row is clicke
 	var row_callback = function(){};
 	var popupButtons = [];
-	me = this;
+	var me = this;
 
 	this.addRowcallback = function(callback){
 		//disaabled
@@ -25,8 +25,7 @@
 		// DOMTableRow.data("modelindex")
 		// model.getFeatureProperty(modelIndex) - but we need all of them :-(
 		//alert($(this).data("modelindex"));
-		
-	}
+	};
 
 	this.addGlobalButton = function(buttondef){
 		//buttondef format:
@@ -55,7 +54,7 @@
 	//  modify buttoncolumns
 	// and reinitialize
 		me.buttoncolumns.push(buttondef);
-		me.reinitialize();
+//		me.reinitialize();
 
 	};
 	
@@ -64,7 +63,7 @@
 	//  title:
 	//  callback = function(feature) {}
 		popupButtons.push(buttondef);
-	}
+	};
 	
 	this.show = function(){
 		if(display_popup){
@@ -77,38 +76,39 @@
 			var name = me.model.getFeatureProperty(i,"firstname");
 			var feature = me.model.getFeature(i);
 
-			var infoPopup = $("<div> </div>")
+			var infoPopup = $("<div> </div>");
 			infoPopup.append(name);
 			buttonList = $("<ul></ul>").css("list-style-type","none");
 			for (c in popupButtons){
 				var callback = function() {
 					popupButtons[c].callback.call(this,feature);
-				}
-				var button = $("<li>"+popupButtons[c].title+"</li>").click(callback)	
+				};
+				var button = $("<li>"+popupButtons[c].title+"</li>").click(callback);
 				button.css("display","inline");
 				buttonList.append(button);
 			}
 			infoPopup.append(buttonList);
-			infoPopup.dialog({autoOpen:true })
-			})
-
+			infoPopup.dialog({autoOpen:true });
+		});
 	};
 
 	this.hide = function(){
 		if(display_popup){
 			$('#'+options.id).dialog("hide");
-		}else{
+		}
+		else{
 			$('#'+options.id).css("display","none");
 		}
-	}
+	};
 
 	if(display_popup){
 		$('#'+options.id).dialog({autoOpen: false , width:600, draggable: true});
-	}else{
+	}
+	else{
 		$('#'+options.id).css("display","none");
 	}
 	
-}
+};
 
 
 var table = $('<table id="'+ options.id +'_table"><thead><tr></tr></thead><tbody></tbody></table>');
@@ -117,4 +117,6 @@
 ResultGeometryList.prototype = new ResultGeometryListController(table);
 ResultGeometryList.prototype.constructor = ResultGeometryList;
 
-Mapbender.modules[options.id] = $.extend(new ResultGeometryList(), Mapbender.modules[options.id]);
+Mapbender.modules[options.id] = $.extend(
+	new ResultGeometryList(), Mapbender.modules[options.id]
+);



More information about the Mapbender_commits mailing list