summaryrefslogtreecommitdiffstats
path: root/provisioning-listgroups-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2010-12-22 10:58:59 +0000
committerTed Trask <ttrask01@yahoo.com>2010-12-22 10:58:59 +0000
commit54deb9b8abac7537c77ce39a68bea1c8028f88b7 (patch)
treee7e9320638d3928c9f85e5d3bce77919c1bd07e1 /provisioning-listgroups-html.lsp
parentd4a505fd30aacfac933013eac17ea40256b72d90 (diff)
downloadacf-provisioning-54deb9b8abac7537c77ce39a68bea1c8028f88b7.tar.bz2
acf-provisioning-54deb9b8abac7537c77ce39a68bea1c8028f88b7.tar.xz
Add js popups to verify deletes.
Diffstat (limited to 'provisioning-listgroups-html.lsp')
-rw-r--r--provisioning-listgroups-html.lsp3
1 files changed, 2 insertions, 1 deletions
diff --git a/provisioning-listgroups-html.lsp b/provisioning-listgroups-html.lsp
index df3887a..a3aac8e 100644
--- a/provisioning-listgroups-html.lsp
+++ b/provisioning-listgroups-html.lsp
@@ -7,6 +7,7 @@ require("viewfunctions")
<script type="text/javascript">
$(document).ready(function() {
$("#list").tablesorter({headers: {0:{sorter: false}}});
+ $(".deletegroup").click(function(){ return confirm("Are you sure you want to delete this group?")});
});
</script>
@@ -27,7 +28,7 @@ require("viewfunctions")
<TR>
<TD>
<% if viewlibrary.check_permission("deletegroup") then %>
- <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deletegroup?group_id="..v.group_id, label="Delete "} %>
+ <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deletegroup?group_id="..v.group_id, label="Delete ", class="deletegroup"} %>
<% end %>
<% if viewlibrary.check_permission("editgroup") then %>
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editgroup?group_id="..v.group_id.."&redir="..page_info.orig_action, label="Edit "} %>