workflows: fix default confirmation in choice action (#82406)
gitea/wcs/pipeline/head This commit looks good Details

This commit is contained in:
Lauréline Guérin 2023-10-16 15:03:16 +02:00
parent 070fa0997d
commit 7443515226
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ $(function() {
function prepare_confirmation_buttons() {
$('button[data-ask-for-confirmation]').off('click').on('click', function() {
var text = $(this).data('ask-for-confirmation');
if (text === 'true') {
if (text === true) {
text = WCS_I18N.confirmation;
}
if (confirm(text) != true) {