From 2fbae2bb41f63e35f0e7c3a650c78bfa138faf7b Mon Sep 17 00:00:00 2001 From: Cesar G Date: Tue, 8 Apr 2014 03:54:56 -0700 Subject: [ticket/10737] Add a more generic live search implementation. PHPBB3-10737 --- phpBB/styles/prosilver/template/ajax.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'phpBB/styles') diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js index 4df38f4275..78ec5c0cb7 100644 --- a/phpBB/styles/prosilver/template/ajax.js +++ b/phpBB/styles/prosilver/template/ajax.js @@ -315,13 +315,17 @@ $('.poll_view_results a').click(function(e) { $('[data-ajax]').each(function() { var $this = $(this), ajax = $this.attr('data-ajax'), + filter = $this.attr('data-filter'), fn; if (ajax !== 'false') { fn = (ajax !== 'true') ? ajax : null; + filter = (filter !== undefined) ? phpbb.getFunctionByName(filter) : null; + phpbb.ajaxify({ selector: this, refresh: $this.attr('data-refresh') !== undefined, + filter: filter, callback: fn }); } -- cgit v1.2.1