// adding the dynamic loading of tabs in products
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11124 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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() == '')
|
||||
|
||||
Reference in New Issue
Block a user