diff --git a/admin-dev/themes/template/attributes/form.tpl b/admin-dev/themes/template/attributes/form.tpl index 5ab708bbe..2ee73b654 100644 --- a/admin-dev/themes/template/attributes/form.tpl +++ b/admin-dev/themes/template/attributes/form.tpl @@ -24,13 +24,14 @@ * International Registered Trademark & Property of PrestaShop SA *} {extends file="helper/form/form.tpl"} + {block name=script} - var attributesGroups = {ldelim}{$strAttributesGroups}{rdelim}; - $('#id_attribute_group').change(function() { - var val = $(this).val(); - if (attributesGroups[val]) - $('#colorAttributeProperties').show(); - else - $('#colorAttributeProperties').hide(); - }); + var attributesGroups = {ldelim}{$strAttributesGroups}{rdelim}; + $('#id_attribute_group').change(function() { + var val = $(this).val(); + if (attributesGroups[val]) + $('#colorAttributeProperties').show(); + else + $('#colorAttributeProperties').hide(); + }); {/block} diff --git a/admin-dev/themes/template/carriers/form.tpl b/admin-dev/themes/template/carriers/form.tpl index 7496c634a..13fb01b44 100644 --- a/admin-dev/themes/template/carriers/form.tpl +++ b/admin-dev/themes/template/carriers/form.tpl @@ -23,273 +23,29 @@ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} +{extends file="helper/form/form.tpl"} -{if $firstCall} - - -{/if} - -