2
0
forked from Wavyzz/dolibarr

fix javascript

This commit is contained in:
Christophe Battarel
2019-04-16 17:36:42 +02:00
parent 62f59a13af
commit 20953d3522

View File

@@ -64,7 +64,7 @@ if (! empty($conf->global->MAIN_MULTILANGS) )
} }
} }
if (empty($conf->global->PDF_ALLOW_HTML_FOR_FREE_TEXT)) if (empty($conf->fckeditor->enabled) || empty($conf->global->PDF_ALLOW_HTML_FOR_FREE_TEXT))
{ {
print '<textarea name="freetext" class="flat" cols="120">'.$conf->global->$freetextconfvar.'</textarea>'; print '<textarea name="freetext" class="flat" cols="120">'.$conf->global->$freetextconfvar.'</textarea>';
} }
@@ -99,7 +99,7 @@ if (! empty($conf->global->MAIN_MULTILANGS) )
$('#freetextlang').change(function() $('#freetextlang').change(function()
{ {
<?php <?php
if (empty($conf->global->PDF_ALLOW_HTML_FOR_FREE_TEXT)) if (empty($conf->fckeditor->enabled) || empty($conf->global->PDF_ALLOW_HTML_FOR_FREE_TEXT))
{ {
?> ?>
$('textarea[name=freetext]').val(freetext[$(this).val()]); $('textarea[name=freetext]').val(freetext[$(this).val()]);