diff --git a/htdocs/core/js/lib_head.js.php b/htdocs/core/js/lib_head.js.php index 83a161e35d6..c0d4f0f3829 100644 --- a/htdocs/core/js/lib_head.js.php +++ b/htdocs/core/js/lib_head.js.php @@ -530,7 +530,7 @@ function hideMessage(fieldId,message) { * @param string token Token */ function setConstant(url, code, input, entity, strict, forcereload, userid, token) { - var $url = url; /* avoid undefined url */ + var saved_url = url; /* avoid undefined url */ $.post( url, { action: "set", name: code, @@ -575,7 +575,7 @@ function setConstant(url, code, input, entity, strict, forcereload, userid, toke $.each(data, function(key, value) { $("#set_" + key).hide(); $("#del_" + key).show(); - $.post( url, { + $.post( saved_url, { action: "set", name: key, value: value, @@ -605,7 +605,7 @@ function setConstant(url, code, input, entity, strict, forcereload, userid, toke * @param string token Token */ function delConstant(url, code, input, entity, strict, forcereload, userid, token) { - var $url = url; /* avoid undefined url */ + var saved_url = url; /* avoid undefined url */ $.post( url, { action: "del", name: code, @@ -647,7 +647,7 @@ function delConstant(url, code, input, entity, strict, forcereload, userid, toke $.each(data, function(key, value) { $("#del_" + value).hide(); $("#set_" + value).show(); - $.post( url, { + $.post( saved_url, { action: "del", name: value, entity: entity,