add a confirm dialog to "finish without validation" action (#4571)

This commit is contained in:
Frédéric Péters 2014-03-28 10:56:09 +01:00
parent 24e58db1ab
commit 0c4c217063
2 changed files with 8 additions and 0 deletions

View File

@ -487,6 +487,8 @@ div.contentActions {
#contentActionMenus dd.actionMenuContent li a.no-icon span {
padding-left: 19px;
width: 90%;
display: inline-block;
}
#contentActionMenus a.first-action,

View File

@ -36,4 +36,10 @@ $(function() {
}
return false;
});
$('.version-action-finish_without_validation span').click(function() {
if (confirm("Vraiment valider et finaliser la version ?\n(cette action est définitive)") == true) {
return true; /* this will let the event flow the <a> below */
}
return false;
});
});