aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-04-08 03:54:56 -0700
committerCesar G <prototech91@gmail.com>2014-04-23 09:11:40 -0700
commit2fbae2bb41f63e35f0e7c3a650c78bfa138faf7b (patch)
treeaec5a47d039fe4b1c337356ebc3a1b1a2c7dfab7 /phpBB/styles
parent1a51ceeabe73423b919266027cc8e86ad47a52e1 (diff)
downloadforums-2fbae2bb41f63e35f0e7c3a650c78bfa138faf7b.tar
forums-2fbae2bb41f63e35f0e7c3a650c78bfa138faf7b.tar.gz
forums-2fbae2bb41f63e35f0e7c3a650c78bfa138faf7b.tar.bz2
forums-2fbae2bb41f63e35f0e7c3a650c78bfa138faf7b.tar.xz
forums-2fbae2bb41f63e35f0e7c3a650c78bfa138faf7b.zip
[ticket/10737] Add a more generic live search implementation.
PHPBB3-10737
Diffstat (limited to 'phpBB/styles')
-rw-r--r--phpBB/styles/prosilver/template/ajax.js4
1 files changed, 4 insertions, 0 deletions
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
});
}