mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Do not prompt the user with a 'prompt()' in javascript when deleting members. Fix #29
This commit is contained in:
parent
7d9fde0460
commit
5245a1a6c7
2 changed files with 10 additions and 1 deletions
|
@ -104,3 +104,7 @@ div.topbar ul.secondary-nav { padding-right: 75px; }
|
|||
margin-right: 20px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.confirm, .confirm:hover {
|
||||
color: red;
|
||||
}
|
||||
|
|
|
@ -24,7 +24,12 @@
|
|||
$('a.remove').each(function(){
|
||||
$(this).hide();
|
||||
$(this).click(function(){
|
||||
return confirm("are you sure?");
|
||||
if ($(this).hasClass("confirm")){
|
||||
return true;
|
||||
}
|
||||
$(this).html("you sure?");
|
||||
$(this).addClass("confirm");
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue