diff options
author | Bharat Mediratta <bharat@menalto.com> | 2012-04-01 11:53:34 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2012-04-01 11:53:34 -0700 |
commit | f6dac703eceb95ee6af66983e1a77e052446ac2f (patch) | |
tree | 1a95acebc97f203e314e122ffd55d3489d8e1a61 /modules/gallery/views/admin_advanced_settings.html.php | |
parent | 76d4139cdbe998c0a8da838b3edfcab79a490956 (diff) |
Try a different approach at filtering. Fixes #1831.
Diffstat (limited to 'modules/gallery/views/admin_advanced_settings.html.php')
-rw-r--r-- | modules/gallery/views/admin_advanced_settings.html.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gallery/views/admin_advanced_settings.html.php b/modules/gallery/views/admin_advanced_settings.html.php index d4f646f8..8d21d890 100644 --- a/modules/gallery/views/admin_advanced_settings.html.php +++ b/modules/gallery/views/admin_advanced_settings.html.php @@ -43,9 +43,9 @@ var filter = $(this).attr("value"); if (filter) { $("tr.setting-row").fadeOut("fast"); - $("tr.setting-row td:contains(" + filter + "), tr.setting-row td a:contains(" + filter + ")").each(function() { - if ($(this).children().length < 1) { - $(this).closest("tr").stop().show(); + $("tr.setting-row").each(function() { + if ($(this).text().indexOf(filter) > 0) { + $(this).stop().show(); } }); } else { |