Prepare for fix

This commit is contained in:
Laurent Destailleur
2020-09-19 01:53:22 +02:00
parent b7a97b2c81
commit 6a45545ec1
2 changed files with 15 additions and 11 deletions

View File

@@ -670,8 +670,9 @@ function delConstant(url, code, input, entity, strict, forcereload, userid, toke
* @param int noButton noButton
* @param int strict Strict
* @param int userid User id
* @param string token Token
*/
function confirmConstantAction(action, url, code, input, box, entity, yesButton, noButton, strict, userid) {
function confirmConstantAction(action, url, code, input, box, entity, yesButton, noButton, strict, userid, token) {
var boxConfirm = box;
$("#confirm_" + code)
.attr("title", boxConfirm.title)
@@ -687,9 +688,9 @@ function confirmConstantAction(action, url, code, input, box, entity, yesButton,
text : yesButton,
click : function() {
if (action == "set") {
setConstant(url, code, input, entity, strict, 0, userid);
setConstant(url, code, input, entity, strict, 0, userid, token);
} else if (action == "del") {
delConstant(url, code, input, entity, strict, 0, userid);
delConstant(url, code, input, entity, strict, 0, userid, token);
}
// Close dialog
$(this).dialog("close");