mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-27 09:08:53 +01:00
use more flexible way to get the id of the <div>
this let use of more complex widget than a simple <input> in <div> child
This commit is contained in:
parent
08e489f78d
commit
7d01203e35
@ -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("");
|
||||
|
Loading…
Reference in New Issue
Block a user