Prepare for fix
This commit is contained in:
parent
99c05f0923
commit
b7a97b2c81
@ -90,7 +90,7 @@ print '<tr class="oddeven">';
|
||||
print '<td>'.$langs->trans("EXPORTS_SHARE_MODELS").'</td>';
|
||||
print '<td class="center" width="20"> </td>';
|
||||
print '<td class="center" width="100">';
|
||||
echo ajax_constantonoff('EXPORTS_SHARE_MODELS');
|
||||
print ajax_constantonoff('EXPORTS_SHARE_MODELS');
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr class="oddeven">';
|
||||
|
||||
@ -516,7 +516,8 @@ function hideMessage(fieldId,message) {
|
||||
|
||||
|
||||
/*
|
||||
* Used by button to set on/off
|
||||
* Used by button to set on/off.
|
||||
* Call url then make complementary action (like show/hide, enable/disable or set another option).
|
||||
*
|
||||
* @param string url Url
|
||||
* @param string code Code
|
||||
@ -525,12 +526,14 @@ function hideMessage(fieldId,message) {
|
||||
* @param int strict Strict
|
||||
* @param int forcereload Force reload
|
||||
* @param int userid User id
|
||||
* @param string token Token
|
||||
*/
|
||||
function setConstant(url, code, input, entity, strict, forcereload, userid) {
|
||||
function setConstant(url, code, input, entity, strict, forcereload, userid, token) {
|
||||
$.get( url, {
|
||||
action: "set",
|
||||
name: code,
|
||||
entity: entity
|
||||
entity: entity,
|
||||
token: token
|
||||
},
|
||||
function() {
|
||||
console.log("url request success forcereload="+forcereload);
|
||||
@ -587,6 +590,7 @@ function setConstant(url, code, input, entity, strict, forcereload, userid) {
|
||||
|
||||
/*
|
||||
* Used by button to set on/off
|
||||
* Call url then make complementary action (like show/hide, enable/disable or set another option).
|
||||
*
|
||||
* @param string url Url
|
||||
* @param string code Code
|
||||
@ -595,12 +599,14 @@ function setConstant(url, code, input, entity, strict, forcereload, userid) {
|
||||
* @param int strict Strict
|
||||
* @param int forcereload Force reload
|
||||
* @param int userid User id
|
||||
* @param string token Token
|
||||
*/
|
||||
function delConstant(url, code, input, entity, strict, forcereload, userid) {
|
||||
function delConstant(url, code, input, entity, strict, forcereload, userid, token) {
|
||||
$.get( url, {
|
||||
action: "del",
|
||||
name: code,
|
||||
entity: entity
|
||||
entity: entity,
|
||||
token: token
|
||||
},
|
||||
function() {
|
||||
console.log("url request success forcereload="+forcereload);
|
||||
|
||||
@ -491,8 +491,8 @@ function ajax_combobox($htmlname, $events = array(), $minLengthToAutocomplete =
|
||||
* @param int $revertonoff Revert on/off
|
||||
* @param int $strict Use only "disabled" with delConstant and "enabled" with setConstant
|
||||
* @param int $forcereload Force to reload page if we click/change value (this is supported only when there is no 'alert' option in input)
|
||||
* @param string $marginleftonlyshort 1 = Add a short left margin on picto, 2 = Add a larger left margin on picto, 0 = No margin left. Works for fontawesome picto only.
|
||||
* @param int $forcenoajax 1=Force to use a ahref link instead of ajax code.
|
||||
* @param string $marginleftonlyshort 1 = Add a short left margin on picto, 2 = Add a larger left margin on picto, 0 = No left margin. Works for fontawesome picto only.
|
||||
* @param int $forcenoajax 1=Force to use a ahref link instead of ajax code.
|
||||
* @return string
|
||||
*/
|
||||
function ajax_constantonoff($code, $input = array(), $entity = null, $revertonoff = 0, $strict = 0, $forcereload = 0, $marginleftonlyshort = 2, $forcenoajax = 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user