Mercurial > hg > ChinaGisRestApi
comparison gis_gui/blocks/tablestructure.js @ 252:efd2469d1722
geometry-column of tables will be displayed as string
author | fknauft |
---|---|
date | Tue, 20 Sep 2011 11:19:35 +0200 |
parents | c84536a4993a |
children | 3a10287447b1 |
comparison
equal
deleted
inserted
replaced
251:477b054e9357 | 252:efd2469d1722 |
---|---|
25 console.debug(tbl); | 25 console.debug(tbl); |
26 var colheads = []; | 26 var colheads = []; |
27 var row = []; | 27 var row = []; |
28 for (var i = 0; i < fields.length; i++) { | 28 for (var i = 0; i < fields.length; i++) { |
29 colheads.push({'sTitle': fields[i].name}); | 29 colheads.push({'sTitle': fields[i].name}); |
30 row.push(getHtmlSelectFromList(['text','number','gis_id','coord_lat','coord_lon','id'],fields[i].type,'class="type_'+fields[i].name+'"')); | 30 row.push(getHtmlSelectFromList(['text','number','gis_id','coord_lat','coord_lon','the_geom','id'],fields[i].type,'class="type_'+fields[i].name+'"')); |
31 } | 31 } |
32 // Add DataTables functionality | 32 // Add DataTables functionality |
33 $(tbl).dataTable({ | 33 $(tbl).dataTable({ |
34 'aoColumns': colheads, | 34 'aoColumns': colheads, |
35 'aaData': [row], | 35 'aaData': [row], |