Fix translate buttons
This commit is contained in:
parent
71a090388b
commit
b3f7ffdaed
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue