Commit 397d59e9 authored by Ted Trask's avatar Ted Trask

Added confirm box when deleting user

parent ea84f74c
......@@ -7,6 +7,7 @@ require("viewfunctions")
<script type="text/javascript">
$(document).ready(function() {
$("#list").tablesorter({headers: {0:{sorter: false}}});
$(".deleteuser").click(function(){ return confirm("Are you sure you want to delete this user?")});
});
</script>
......@@ -28,7 +29,7 @@ require("viewfunctions")
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editusersettings?username="..v.username, label="Edit "} %>
<% end %>
<% if viewlibrary.check_permission("deleteuser") then %>
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deleteuser?username="..v.username, label="Delete "} %>
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deleteuser?username="..v.username, label="Delete ", class="deleteuser"} %>
<% end %>
</TD>
<TD><%= html.html_escape(v.username) %></TD>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment