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:
parent
85abc0b1fc
commit
1147f2ece8
1 changed files with 5 additions and 1 deletions
|
@ -13,9 +13,13 @@
|
|||
|
||||
{% if add_bill %} $('#new-bill').click(); {% endif %}
|
||||
|
||||
// ask for confirmation before removing an user
|
||||
// Hide all members actions
|
||||
$('.action').each(function(){
|
||||
$(this).hide();
|
||||
});
|
||||
|
||||
// ask for confirmation before removing an user
|
||||
$('.action.delete').each(function(){
|
||||
var link = $(this).find('button');
|
||||
link.click(function(){
|
||||
if ($(this).hasClass("confirm")){
|
||||
|
|
Loading…
Reference in a new issue