Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions fairchive-webapp/src/main/webapp/search/advanced.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,16 @@
value="#{item.fieldValue}"
rendered="#{item.searchFieldType == fieldTypeEnums.TEXT}"/>
<div jsf:rendered="#{item.searchFieldType == fieldTypeEnums.GEOBOX_COORD}">

<p:inputTextarea id="geoboxSearchValue" styleClass="form-control coord-marker margin-top"
value="#{item.fieldValue}"
onchange="
this.value = this.value.replace(/,/g, '.');
DvJS.Geo.SearchView.storeCoordinates('#{mapId}', $(this).val());
DvJS.Geo.SearchView.updateMap('#{mapId}');"
rows="5"
widgetVar="#{widgetVar}"
pt:data-handler="#{widgetVar}"/>
<c:set var="mapId" value="#{item.parent.isDefined()
? (mdb.blockName).concat('_').concat(item.getParent().get().getDisplayId()) : ''}"/>
<c:set var="widgetVar" value="#{mapId}_#{item.datasetFieldType.name}"/>
Expand All @@ -138,16 +148,6 @@
<div id="#{mapId}" class="form-col-container geo-map">
</div>

<p:inputTextarea id="geoboxSearchValue" styleClass="form-control coord-marker margin-top"
value="#{item.fieldValue}"
onchange="
this.value = this.value.replace(/,/g, '.');
DvJS.Geo.SearchView.storeCoordinates('#{mapId}', $(this).val());
DvJS.Geo.SearchView.updateMap('#{mapId}');"
rows="5"
widgetVar="#{widgetVar}"
pt:data-handler="#{widgetVar}"/>

<script>
DvJS.Geo.SearchView.prepare('#{mapId}');
DvJS.Geo.SearchView.putWidgetVar('#{mapId}', 'polygonGeo', '#{widgetVar}');
Expand Down