// Add autosize to textarea

This commit is contained in:
Jerome Nadaud
2013-09-12 16:52:55 +02:00
parent ba6699a378
commit 29db737c10
5 changed files with 17 additions and 4 deletions
+3
View File
@@ -92,6 +92,9 @@ class HelperOptionsCore extends Helper
if ($field['type'] == 'color')
$this->context->controller->addJS(_PS_JS_DIR_.'jquery/plugins/jquery.colorpicker.js');
if ($field['type'] == 'texarea' || $field['type'] == 'textareaLang')
$this->context->controller->addJS(_PS_JS_DIR_.'jquery/plugins/jquery.autosize.min.js');
// Cast options values if specified
if ($field['type'] == 'select' && isset($field['cast']))