32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-11-13 00:06:30 +00:00

Clear search value when Clear button is pressed

This commit is contained in:
Tuan Pham Ngoc 2021-08-11 21:32:58 +07:00
parent 66f238e1c4
commit efe415d633

View File

@ -52,7 +52,7 @@ $listDirn = $this->escape($this->state->get('list.direction'));
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="reset" name="filter-clear-button" class="btn btn-secondary" onclick="document.getElementById('filter-search').value = '';document.adminForm.submit();"><?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?></button>
</div>
<?php endif; ?>
<?php if ($this->params->get('show_pagination_limit')) : ?>