From 9ae6546d906c7ded21fc5fa1d4f6a5d44a29457d Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Fri, 4 Oct 2013 12:23:01 +0200 Subject: [PATCH] // Features - Remove select language with one language and add autosize to textarea --- .../default/template/controllers/products/features.tpl | 7 ++++++- controllers/admin/AdminProductsController.php | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/admin-dev/themes/default/template/controllers/products/features.tpl b/admin-dev/themes/default/template/controllers/products/features.tpl index fc270497c..b24279195 100644 --- a/admin-dev/themes/default/template/controllers/products/features.tpl +++ b/admin-dev/themes/default/template/controllers/products/features.tpl @@ -68,14 +68,17 @@ {foreach from=$languages key=k item=language} + {if $languages|count > 1}
+ {/if} + {if $languages|count > 1}
+ {/if} {/foreach} @@ -112,4 +116,5 @@ {/if} \ No newline at end of file diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index 6351ce766..4e248c459 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -2212,6 +2212,9 @@ class AdminProductsControllerCore extends AdminController public function initContent($token = null) { + //Required for Features Textarea autosize + $this->addJS(_PS_JS_DIR_.'jquery/plugins/jquery.autosize.min.js'); + if ($this->display == 'edit' || $this->display == 'add') { $this->fields_form = array();