mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-11 02:12:33 +01:00
Fix translate buttons
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -1402,3 +1402,5 @@ ToPay=Pay
|
||||
StarsFieldValue=%s stars
|
||||
Archives=Archives
|
||||
LastMainDoc=Last generated document
|
||||
OK=OK
|
||||
KO=KO
|
||||
|
||||
Reference in New Issue
Block a user