mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-07-16 22:15:19 +02:00
Merge pull request #144 from bclermont/patch-1
use more flexible way to get the id of the <div>
This commit is contained in:
@ -5,7 +5,7 @@ $(document).ready(function() {
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
$(".filterBuilderRemove").click(function() {
|
$(".filterBuilderRemove").click(function() {
|
||||||
var boxName = "#" + $(this).parent().attr('id');
|
var boxName = "#" + $(this).parents(".filterBox").attr('id');
|
||||||
$(boxName).slideUp();
|
$(boxName).slideUp();
|
||||||
$(boxName).children("input:text").each(function() {
|
$(boxName).children("input:text").each(function() {
|
||||||
$(this).val("");
|
$(this).val("");
|
||||||
|
Reference in New Issue
Block a user