#
AJAX filter
1.0.1+
#
Basic usage
As an example, let's add an update via AJAX to standard thread filters. This requires only one modification to the forum_filters
template:
Search type: Regular expression.
Find:
/(<xf:form action="{{ link\('forums\/filters', \$forum\) }}")(>)/
Replace:
<xf:js src="TC/ComponentLibrary/ajax_filter.js" addon="TC/ComponentLibrary" min="1" />
$1 data-xf-init="tc-ajax-filter" data-filter-url="{{ link('forums', $forum) }}" data-replace=".js-threadList"$2