[Mapbender-commits] r5102 - trunk/mapbender/lib

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Dec 9 12:14:20 EST 2009


Author: kmq
Date: 2009-12-09 12:14:20 -0500 (Wed, 09 Dec 2009)
New Revision: 5102

Modified:
   trunk/mapbender/lib/resultGeometryListController.js
Log:
added some style

Modified: trunk/mapbender/lib/resultGeometryListController.js
===================================================================
--- trunk/mapbender/lib/resultGeometryListController.js	2009-12-09 17:08:21 UTC (rev 5101)
+++ trunk/mapbender/lib/resultGeometryListController.js	2009-12-09 17:14:20 UTC (rev 5102)
@@ -1,5 +1,6 @@
 var ResultGeometryListController = function(table){
 
+	// E
 	// The WFSConfId this List is currently configured with
 	var WFSConf = null;
 
@@ -7,7 +8,7 @@
 	var model = null;
 
 	// a jquery object referencing the datatable we're using
-	var datatable = null;
+	this.datatable = null;
 	
 	// a jquery object referencing the underlying html table we're using
 	var table = table;//table;$("#"+opid).append("<table></table>");;
@@ -65,10 +66,10 @@
 			}
 
 			// fnAddData returns an array of indices
-			var index = datatable.fnAddData(rowData);
+			var index = me.datatable.fnAddData(rowData);
 
 			// this is ok because we only added a single row
-			var rowNode = datatable.fnGetNodes(index[0]);
+			var rowNode = me.datatable.fnGetNodes(index[0]);
 			$(rowNode).data("modelindex",modelIndex);
 			$(rowNode).click((function(){
 				var i = $(this).data("modelindex");
@@ -122,8 +123,8 @@
 	};
 
 	var clear_callback = function(){
-		if (datatable) {
-			datatable.fnClearTable();
+		if (me.datatable) {
+			me.datatable.fnClearTable();
 //			datatable.remove();
 		}
 	};
@@ -155,7 +156,12 @@
 		//}
 		//table.append(heads);
 		//table.append($("<tbody></tbody>"));
-		datatable = table.dataTable();
+		me.datatable = table.dataTable({  
+			// see http://www.sprymedia.co.uk/dataTables/example_dom.html
+			"sDom": '<i<"resultdatatable"t>p> '
+		});
+		$(".resultdatatable").css("clear","both");
+		$(".resultdatatable table").css("width","95%");
 
 
 	};



More information about the Mapbender_commits mailing list