error on ajax_constantonoff function
This commit is contained in:
parent
97677f08a9
commit
92e8f54e9a
@ -383,7 +383,7 @@ function ajax_constantonoff($code, $input=array(), $entity=null, $revertonoff=0)
|
|||||||
|
|
||||||
$out= "\n<!-- Ajax code to switch constant ".$code." -->".'
|
$out= "\n<!-- Ajax code to switch constant ".$code." -->".'
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function() {
|
$(document).ready(function() {
|
||||||
var input = '.json_encode($input).';
|
var input = '.json_encode($input).';
|
||||||
var url = \''.DOL_URL_ROOT.'/core/ajax/constantonoff.php\';
|
var url = \''.DOL_URL_ROOT.'/core/ajax/constantonoff.php\';
|
||||||
var code = \''.$code.'\';
|
var code = \''.$code.'\';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user