forked from osTicket/osTicket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathajax.filter.php
28 lines (23 loc) · 874 Bytes
/
ajax.filter.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
require_once(INCLUDE_DIR . 'class.filter.php');
class FilterAjaxAPI extends AjaxController {
function getFilterActionForm($type) {
if (!($A = FilterAction::lookupByType($type)))
Http::response(404, 'No such filter action type');
$form = $A->getConfigurationForm();
?>
<div style="position:relative">
<div class="pull-right" style="position:absolute;top:2px;right:2px;">
<a href="#" title="<?php echo __('clear'); ?>" onclick="javascript:
if (!confirm(__('You sure?')))
return false;
$(this).closest('tr').fadeOut(400, function() { $(this).hide(); });
return false;"><i class="icon-trash"></i></a>
</div>
<?php
include STAFFINC_DIR . 'templates/dynamic-form-simple.tmpl.php';
?>
</div>
<?php
}
}