[-] BO : fix JS exception when advanced stock management is inactive

This commit is contained in:
tDidierjean
2012-04-06 08:34:51 +00:00
parent 7276f0022f
commit 08a58b84b5
+2 -1
View File
@@ -54,8 +54,9 @@ function ProductTabsManager(){
this.onLoad = function (tab_name, callback)
{
container = $('#product-tab-content-' + tab_name);
// Some containers are not loaded depending on the shop configuration
if (container.length === 0)
throw 'Could not find container for tab name: ' + tab_name;
return;
// onReady() is always called after the dom has been created for the tab (similar to $(document).ready())
if (container.hasClass('not-loaded'))