diff --git a/admin-dev/themes/default/template/controllers/products/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/products/helpers/form/form.tpl index 0810b5e12..0b4caab8b 100644 --- a/admin-dev/themes/default/template/controllers/products/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/products/helpers/form/form.tpl @@ -124,10 +124,8 @@ {* submenu binding *} $(".productTabs a").click(function(e){ e.preventDefault(); - // currentId is the current product tab id currentId = $(".productTabs a.active").attr('id').substr(5); - //console.log(currentId); // id is the wanted producttab id id = $(this).attr('id').substr(5); @@ -192,6 +190,12 @@ return confirm("{l s='You will lose all unsaved modifications. Are you sure that you\'d like to proceed?' js=1}"); }); + $('#toolbar-footer').appendTo($('#product-tab-content-Informations').children('.product-tab')); + + $('.product-tab-content').on('displayed', function(e) { + $('#toolbar-footer').appendTo($(this).children('.product-tab')); + }); + }); var tabs_preloaded = new Array(); diff --git a/admin-dev/themes/default/template/footer_toolbar.tpl b/admin-dev/themes/default/template/footer_toolbar.tpl index 3d7843af9..f69338a33 100644 --- a/admin-dev/themes/default/template/footer_toolbar.tpl +++ b/admin-dev/themes/default/template/footer_toolbar.tpl @@ -24,7 +24,7 @@ *} {if $show_toolbar} -