Merge pull request #144 from bclermont/patch-1

use more flexible way to get the id of the <div>
This commit is contained in:
Ross Poulton 2012-06-06 16:20:52 -07:00
commit 4abd11f54f

View File

@ -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("");