mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-18 23:56:43 +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:
commit
4abd11f54f
@ -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("");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user