Skip to content
Snippets Groups Projects
Commit 91ff28a0 authored by Josef Moravec's avatar Josef Moravec Committed by Robert Lange
Browse files

Eliminate event attribute from advanced search.

parent 90962d92
No related merge requests found
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
</div> </div>
<span id="groupPlaceHolder" class="hidden"> <span id="groupPlaceHolder" class="hidden">
<i class="fa fa-plus-circle" aria-hidden="true"></i> <i class="fa fa-plus-circle" aria-hidden="true"></i>
<a href="#" onClick="addGroup();return false" role="button"><?= $this->transEsc('add_search_group') ?></a> <a href="#" role="button"><?= $this->transEsc('add_search_group') ?></a>
</span> </span>
<?php /* fallback to a fixed set of search groups/fields if JavaScript is turned off */ ?> <?php /* fallback to a fixed set of search groups/fields if JavaScript is turned off */ ?>
<div class="no-js"> <div class="no-js">
...@@ -185,3 +185,12 @@ ...@@ -185,3 +185,12 @@
</div> </div>
</form> </form>
</div> </div>
<?php
$script = <<<JS
$('#groupPlaceHolder a').click(function(e) {
addGroup();
return false;
})
JS;
?>
<?=$this->inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, $script, 'SET');
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