summaryrefslogtreecommitdiffstats
path: root/provisioning-listtemplates-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'provisioning-listtemplates-html.lsp')
-rw-r--r--provisioning-listtemplates-html.lsp3
1 files changed, 2 insertions, 1 deletions
diff --git a/provisioning-listtemplates-html.lsp b/provisioning-listtemplates-html.lsp
index 09e76df..9875b83 100644
--- a/provisioning-listtemplates-html.lsp
+++ b/provisioning-listtemplates-html.lsp
@@ -7,6 +7,7 @@ require("viewfunctions")
<script type="text/javascript">
$(document).ready(function() {
$("#list").tablesorter({headers: {0:{sorter: false}}});
+ $(".deletetemplate").click(function(){ return confirm("Are you sure you want to delete this template?")});
});
</script>
@@ -28,7 +29,7 @@ require("viewfunctions")
<TR>
<TD>
<% if viewlibrary.check_permission("deletetemplate") and v.template_id then %>
- <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deletetemplate?template_id="..v.template_id, label="Delete "} %>
+ <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deletetemplate?template_id="..v.template_id, label="Delete ", class="deletetemplate"} %>
<% end %>
<% if viewlibrary.check_permission("edittemplate") and v.template_id then %>
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/edittemplate?template_id="..v.template_id.."&redir="..page_info.orig_action, label="Edit "} %>