[Mapbender-commits] r9234 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Jul 2 02:38:21 PDT 2015
Author: armin11
Date: 2015-07-02 02:38:21 -0700 (Thu, 02 Jul 2015)
New Revision: 9234
Modified:
trunk/mapbender/http/javascripts/mod_wfsGazetteerEditor_client.php
Log:
Enhancement of gazetter module to support also selectboxes from wfs_conf html templates as it is possible when digitizing
Modified: trunk/mapbender/http/javascripts/mod_wfsGazetteerEditor_client.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfsGazetteerEditor_client.php 2015-07-01 11:22:09 UTC (rev 9233)
+++ trunk/mapbender/http/javascripts/mod_wfsGazetteerEditor_client.php 2015-07-02 09:38:21 UTC (rev 9234)
@@ -574,11 +574,15 @@
spanNode.setAttribute("id", "ttttt");
spanNode.className = wfsConfElementArray[i].f_label_id;
spanNode.innerHTML = wfsConfElementArray[i].f_label;
- var inputNode = document.createElement("input");
- inputNode.type = "text";
- inputNode.className = wfsConfElementArray[i].f_style_id;
- inputNode.id = wfsConfElementArray[i].element_name;
-
+ if (wfsConfElementArray[i].f_form_element_html && wfsConfElementArray[i].f_form_element_html.length > 0) {
+ var inputNode = document.createElement("div");
+ inputNode.innerHTML = wfsConfElementArray[i].f_form_element_html;
+ } else {
+ var inputNode = document.createElement("input");
+ inputNode.type = "text";
+ inputNode.className = wfsConfElementArray[i].f_style_id;
+ inputNode.id = wfsConfElementArray[i].element_name;
+ }
if(wfsConfElementArray[i].f_helptext && wfsConfElementArray[i].f_helptext.length > 0) {
var helptextNode = document.createElement('span');
More information about the Mapbender_commits
mailing list