[Mapbender-commits] r5110 - trunk/mapbender/lib
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Dec 10 10:31:41 EST 2009
Author: verenadiewald
Date: 2009-12-10 10:31:40 -0500 (Thu, 10 Dec 2009)
New Revision: 5110
Modified:
trunk/mapbender/lib/resultGeometryListController.js
Log:
detailColumns
Modified: trunk/mapbender/lib/resultGeometryListController.js
===================================================================
--- trunk/mapbender/lib/resultGeometryListController.js 2009-12-10 13:05:15 UTC (rev 5109)
+++ trunk/mapbender/lib/resultGeometryListController.js 2009-12-10 15:31:40 UTC (rev 5110)
@@ -15,6 +15,9 @@
// the columns that should be displayed
this.columns = [];
+
+ // the detail columns that should be displayed
+ this.detailColumns = [];
// array of buttondef objects
this.buttoncolumns = []
@@ -118,14 +121,17 @@
return resultArray;
};
- this.getDetailsColumns = function(WfsConf){
+ var getDetailColumns = function(WfsConf){
if (!WfsConf) { return []; }
var currentWfsConf = WfsConf;
var labelArray = [];
for (var j = 0 ; j < currentWfsConf.element.length ; j++) {
- if(currentWfsConf.element[j].f_show_detail == 1){
- var labelPos = currentWfsConf.element[j].f_detail_position;
- labelArray[labelPos] = currentWfsConf.element[j].element_name;
+ if(currentWfsConf.element[j].f_show_detail == 1) {
+ var labelPos = currentWfsConf.element[j].f_detailpos;
+ labelArray[labelPos] = {
+ name : currentWfsConf.element[j].element_name,
+ label : currentWfsConf.element[j].f_label
+ };
}
}
resultArray = [];
@@ -152,6 +158,10 @@
//create theads, and variable "labels" according to wfsConf
me.columns = getColumns(this.WFSConf);
+
+ //detail columns
+ me.detailColumns = getDetailColumns(this.WFSConf);
+
//apply columns to table
$("thead tr th",table).remove();
theads = "";
More information about the Mapbender_commits
mailing list