mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-29 10:09:37 +01:00
22 lines
698 B
JavaScript
22 lines
698 B
JavaScript
$(document).ready(function() {
|
|
$("#filterBuilderButton").click(function() {
|
|
var boxName = "#filterBox" + $("#filterBuilderSelect").val();
|
|
$(boxName).slideDown();
|
|
return false;
|
|
});
|
|
$(".filterBuilderRemove").click(function() {
|
|
var boxName = "#" + $(this).parent().attr('id');
|
|
$(boxName).slideUp();
|
|
$(boxName).children("input:text").each(function() {
|
|
$(this).val("");
|
|
});
|
|
$(boxName).children("input:checkbox").each(function() {
|
|
this.checked = false;
|
|
});
|
|
$(boxName).children("select").each(function() {
|
|
this.selectedIndex = -1;
|
|
});
|
|
return false;
|
|
});
|
|
});
|