summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2012-04-01 11:53:34 -0700
committerBharat Mediratta <bharat@menalto.com>2012-04-01 11:53:34 -0700
commitf6dac703eceb95ee6af66983e1a77e052446ac2f (patch)
tree1a95acebc97f203e314e122ffd55d3489d8e1a61
parent76d4139cdbe998c0a8da838b3edfcab79a490956 (diff)
Try a different approach at filtering. Fixes #1831.
-rw-r--r--modules/gallery/views/admin_advanced_settings.html.php6
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 {