From 7f5a625e21928a9bdd0cb6830e64d27aecefab64 Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Thu, 19 Jan 2012 15:44:12 +0000 Subject: [PATCH] // BO: fixes to product page JS git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12564 b9a71923-0436-4b27-9f14-aed3839534dd --- .../default/template/controllers/products/form.tpl | 10 ++++++++-- .../template/controllers/products/informations.tpl | 4 ---- admin-dev/themes/default/template/helper/form/form.tpl | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/products/form.tpl b/admin-dev/themes/default/template/controllers/products/form.tpl index 23c782e17..5bafc06ab 100644 --- a/admin-dev/themes/default/template/controllers/products/form.tpl +++ b/admin-dev/themes/default/template/controllers/products/form.tpl @@ -28,6 +28,9 @@ {block name="autoload_tinyMCE"} // change each by click to load only on click + + $("#product-tab-content-Informations").bind('loaded', function(){ + $(".autoload_rte").each(function(e){ tinySetup({ mode :"exact", @@ -56,10 +59,11 @@ textarea.parent('div').find('span.counter').html(' '); } }); - } }); - }) + }); +}); +$("#product-tab-content-Informations").trigger('loaded'); {/block} {block name="defaultForm"} @@ -75,6 +79,8 @@
diff --git a/admin-dev/themes/default/template/helper/form/form.tpl b/admin-dev/themes/default/template/helper/form/form.tpl index c9dfe3d45..2e5b53f2e 100644 --- a/admin-dev/themes/default/template/helper/form/form.tpl +++ b/admin-dev/themes/default/template/helper/form/form.tpl @@ -398,7 +398,7 @@ theme_advanced_buttons3 : "", theme_advanced_buttons4 : "", }); - }) + }); {/block} });