mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 16:03:19 +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;
|
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…
Reference in New Issue
Block a user