From e543d234ecd9f7d8e4a3ca3d73d764f7ddc3f4ef Mon Sep 17 00:00:00 2001 From: Kevin Thorne <kevin@enhancesoft.com> Date: Fri, 11 Nov 2016 09:37:55 -0600 Subject: [PATCH] Custom Form Deletion This addresses issue where custom forms added to user or organization can not be deleted. --- include/staff/templates/form-manage.tmpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/staff/templates/form-manage.tmpl.php b/include/staff/templates/form-manage.tmpl.php index 9794bdbdd..2874181d6 100644 --- a/include/staff/templates/form-manage.tmpl.php +++ b/include/staff/templates/form-manage.tmpl.php @@ -16,7 +16,7 @@ foreach ($forms as $e) { ?> $current_list[] = $e->get('form_id'); if ($e->getDynamicForm()->get('type') == 'G') { ?> <div class="button-group"> - <div class="delete"><a href="#"><i class="icon-trash"></i></a></div> + <div class="delete"><a href="#" onclick="$(this).closest('div.row-item').remove();$('#delete-warning').show();"><i class="icon-trash"></i></a></div> </div> <?php } ?> </div> -- GitLab