From 7d01203e35fe118fda0eb3c9be7e7fad832e498e Mon Sep 17 00:00:00 2001 From: Bruno Clermont Date: Wed, 6 Jun 2012 12:54:52 +0300 Subject: [PATCH] use more flexible way to get the id of the
this let use of more complex widget than a simple in
child --- helpdesk/static/helpdesk/filter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/static/helpdesk/filter.js b/helpdesk/static/helpdesk/filter.js index 216e556e..7052f5f0 100644 --- a/helpdesk/static/helpdesk/filter.js +++ b/helpdesk/static/helpdesk/filter.js @@ -5,7 +5,7 @@ $(document).ready(function() { return false; }); $(".filterBuilderRemove").click(function() { - var boxName = "#" + $(this).parent().attr('id'); + var boxName = "#" + $(this).parents(".filterBox").attr('id'); $(boxName).slideUp(); $(boxName).children("input:text").each(function() { $(this).val("");