forked from Wavyzz/dolibarr
fix javascript
This commit is contained in:
@@ -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>';
|
||||
}
|
||||
@@ -99,7 +99,7 @@ if (! empty($conf->global->MAIN_MULTILANGS) )
|
||||
$('#freetextlang').change(function()
|
||||
{
|
||||
<?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()]);
|
||||
|
||||
Reference in New Issue
Block a user