Skip to content

Commit

Permalink
Fixing technical error on advanced search page of gallery component w…
Browse files Browse the repository at this point in the history
…hen PDC search is not enabled.
  • Loading branch information
SilverYoCha committed May 6, 2022
1 parent c338c34 commit fb4822e
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -62,11 +62,15 @@
<script type="text/javascript">
function sendData() {
if (checkLuceneQuery()) {
var values = $('#used_pdc').pdc('selectedValues');
<c:if test="${isPdcActivated}">
const values = $('#used_pdc').pdc('selectedValues');
if (values.length > 0) {
document.searchForm.AxisValueCouples.value = values.flatten();
}
setTimeout("document.searchForm.submit();", 500);
</c:if>
setTimeout(function() {
document.searchForm.submit();
}, 500);
}
}
Expand Down

0 comments on commit fb4822e

Please sign in to comment.