Commit 2d5a53e6 authored by Matija Obreza's avatar Matija Obreza

Removed crop parameter

parent c4023ad9
......@@ -18,12 +18,11 @@
<spring:message code="accessions.number" arguments="${pagedData.totalElements}" />
</div>
<div class="pull-right">
<a class="btn btn-default" href="<c:url value="/explore/map"><c:param name="crop" value="${crop.shortName}" /><c:param name="filter">${jsonFilter}</c:param></c:url>"><span class="glyphicon glyphicon-globe"></span><span style="margin-left: 0.5em;"><spring:message code="maps.view-map" /></span></a>
<a class="btn btn-default" href="<c:url value="/explore/map"><c:param name="filter">${jsonFilter}</c:param></c:url>"><span class="glyphicon glyphicon-globe"></span><span style="margin-left: 0.5em;"><spring:message code="maps.view-map" /></span></a>
<c:if test="${pagedData.totalElements le 100000}">
<form style="display: inline-block" method="post" action="/explore/dwca">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
<input type="hidden" name="crop" value="${crop.shortName}" />
<input type="hidden" name="filter" value="<c:out value="${jsonFilter}" />" />
<button class="btn btn-default" type="submit"><spring:message code="filter.download-dwca" /></button>
</form>
......
......@@ -17,7 +17,6 @@
<a class="btn btn-default" href="<c:url value="/explore" />" id="selectArea"><spring:message code="view.accessions" /></a>
<form style="display: inline-block" method="post" action="/explore/kml">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
<input type="hidden" name="crop" value="${crop.shortName}" />
<input type="hidden" name="filter" value="<c:out value="${jsonFilter}" />" />
<button class="btn btn-default" type="submit"><spring:message code="download.kml" /></button>
</form>
......@@ -109,7 +108,7 @@
filterBounds.latitude=[{range:[sw.lat, ne.lat]}];
filterBounds.longitude=[{range:[sw.lng, ne.lng]}];
//console.log(JSON.stringify(filterBounds));
$.ajax("<c:url value="/explore/geoJson"><c:param name="crop" value="${crop.shortName}" /><c:param name="limit" value="11" /></c:url>&filter="+JSON.stringify(filterBounds), {
$.ajax("<c:url value="/explore/geoJson"><c:param name="limit" value="11" /></c:url>&filter="+JSON.stringify(filterBounds), {
type : "GET",
dataType : 'json',
success : function(respObject) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment