[-] BO : fix JS exception when advanced stock management is inactive
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14515 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
08e7f7abb1
commit
678e7b9ab3
1 file changed
+2
-1
@@ -54,8 +54,9 @@ function ProductTabsManager(){
|
|||||||
this.onLoad = function (tab_name, callback)
|
this.onLoad = function (tab_name, callback)
|
||||||
{
|
{
|
||||||
container = $('#product-tab-content-' + tab_name);
|
container = $('#product-tab-content-' + tab_name);
|
||||||
|
// Some containers are not loaded depending on the shop configuration
|
||||||
if (container.length === 0)
|
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())
|
// onReady() is always called after the dom has been created for the tab (similar to $(document).ready())
|
||||||
if (container.hasClass('not-loaded'))
|
if (container.hasClass('not-loaded'))
|
||||||
|
|||||||
Reference in new issue
Block a user