// Add footer toolbar to products panel
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user