Skip to content

Commit

Permalink
Clear, not reset
Browse files Browse the repository at this point in the history
  • Loading branch information
joomdonation committed Sep 5, 2021
1 parent 9747160 commit 3b82198
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/com_weblinks/tmpl/category/default_items.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
placeholder="<?php echo Text::_('COM_WEBLINKS_FILTER_SEARCH_DESC'); ?>"
>
<button type="submit" name="filter_submit" class="btn btn-primary"><?php echo Text::_('JGLOBAL_FILTER_BUTTON'); ?></button>
<button type="reset" name="filter-clear-button" class="btn btn-secondary"><?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?></button>
<button type="button" name="filter-clear-button" class="btn btn-secondary"
onclick="this.form.elements['filter-search'].value = ''; this.form.submit();"><?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?></button>
</div>
<?php endif; ?>
<?php if ($this->params->get('show_pagination_limit')) : ?>
Expand Down

0 comments on commit 3b82198

Please sign in to comment.