Fix translate buttons

This commit is contained in:
Laurent Destailleur
2025-12-13 13:54:16 +01:00
parent 71a090388b
commit b3f7ffdaed
2 changed files with 4 additions and 2 deletions

View File

@@ -588,11 +588,11 @@ function confirmDolibarr(msg, id, popupWidth = 400, disableCancelButton = 0) {
let buttons = {};
if (disableCancelButton === 0) {
buttons.Cancel = function () {
buttons['<?php echo dol_escape_js($langs->trans("Cancel")); ?>'] = function () {
$(this).dialog("close");
};
}
buttons.OK = function () {
buttons['<?php echo dol_escape_js($langs->trans("OK")); ?>'] = function () {
console.log("We click OK"); $(this).dialog("close"); alink.setAttribute("data-alreadyclicked", "1"); alink.click(); return false;
};

View File

@@ -1402,3 +1402,5 @@ ToPay=Pay
StarsFieldValue=%s stars
Archives=Archives
LastMainDoc=Last generated document
OK=OK
KO=KO