rimmer333
9/13/2011 - 11:43 AM

Adds class with category ID into div.ecwid-productBrowser so various CSS customizations can be targeted to products in some particular categ

Adds class with category ID into div.ecwid-productBrowser so various CSS customizations can be targeted to products in some particular category

Ecwid.OnAPILoaded.add(function(){var a;a=window.document.getElementById("ProductBrowser-1");window.Ecwid.ProductBrowser.element=a.getElementsByClassName&&a.getElementsByClassName("ecwid-productBrowser")[0]||function(){var b,c;c=/(^| )ecwid-productBrowser( |$)/;for(b in a.getElementsByTagName("div"))if(b.className.match(c))return b}()});Ecwid.OnPageLoaded.add(function(a){if(a.type==="PRODUCT")window.Ecwid.ProductBrowser.element.className+=" ecwid-productBrowser-ProductInCategory-"+a.categoryId});