1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

Ask for confirmation only for deleting users

This commit is contained in:
Jocelyn Delande 2015-08-22 10:49:15 +02:00
parent 85abc0b1fc
commit 1147f2ece8

View file

@ -13,9 +13,13 @@
{% if add_bill %} $('#new-bill').click(); {% endif %} {% if add_bill %} $('#new-bill').click(); {% endif %}
// ask for confirmation before removing an user // Hide all members actions
$('.action').each(function(){ $('.action').each(function(){
$(this).hide(); $(this).hide();
});
// ask for confirmation before removing an user
$('.action.delete').each(function(){
var link = $(this).find('button'); var link = $(this).find('button');
link.click(function(){ link.click(function(){
if ($(this).hasClass("confirm")){ if ($(this).hasClass("confirm")){