Skip to content

Commit

Permalink
Only show kick when hovering over row; #705
Browse files Browse the repository at this point in the history
  • Loading branch information
Carson-Tang committed May 20, 2020
1 parent 3e01064 commit c5ba51f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion templates/organization/users.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
.kick-form .button {
margin: -8px 0;
}

form.kick-form a.button {
visibility: hidden;
}

tr:hover td > form.kick-form a.button {
visibility: visible;
}
</style>

{% if is_admin %}
Expand All @@ -23,7 +31,7 @@
<script type="text/javascript">
$(function () {
$('form.kick-form').find('a.button').click(function () {
if (confirm('Are you sure you want to kick?')){
if (confirm('Are you sure you want to kick?')) {
$(this).parent().submit();
}
return false;
Expand Down

0 comments on commit c5ba51f

Please sign in to comment.