diff --git a/admin-dev/themes/template/products/form.tpl b/admin-dev/themes/template/products/form.tpl index 0fd5dacac..3d795378b 100644 --- a/admin-dev/themes/template/products/form.tpl +++ b/admin-dev/themes/template/products/form.tpl @@ -39,26 +39,26 @@ + *} diff --git a/js/admin-products.js b/js/admin-products.js index fe872c453..2c338f90e 100644 --- a/js/admin-products.js +++ b/js/admin-products.js @@ -204,6 +204,26 @@ function editProductAttribute(ids, token) } /* END Combination */ +function displayTabProductById(el, id, selected) +{ + myurl = $(el).attr("href")+"&ajax=1"; + $.ajax({ + url : myurl, + async : true, + success :function(data) + { + $("#product-tab-content-"+id).html(data); + $("#product-tab-content-"+id).removeClass('not-loaded'); + + if (selected) + { + $("#link-"+id).addClass('selected'); + $("#product-tab-content-"+id).show(); + } + } + }); +} + function addPackItem() { if ($('#curPackItemId').val() == '' || $('#curPackItemName').val() == '')