1// Function to alternative between list/grid 2function changeLayout(layoutType) 3{ 4 if (layoutType == 'list') 5 { 6 if(jQuery.cookie("product_layout") == 'grid') 7 { 8 jQuery("#products-list-container").removeClass('list'); 9 jQuery("#products-list-container").addClass('grid'); 10 } 11 else 12 { 13 jQuery("#products-list-container").removeClass('grid'); 14 jQuery("#products-list-container").addClass('list'); 15 } 16 } 17 else 18 { 19 if(jQuery.cookie("product_layout") == 'list') 20 { 21 jQuery("#products-list-container").removeClass('grid'); 22 jQuery("#products-list-container").addClass('list'); 23 } 24 else 25 { 26 jQuery("#products-list-container").removeClass('list'); 27 jQuery("#products-list-container").addClass('grid'); 28 } 29 } 30 jQuery(".sortPagiBar .btn-group a").click(function() { 31 if(this.rel == 'list') 32 { 33 jQuery("#products-list-container").removeClass('grid'); 34 jQuery("#products-list-container").addClass(this.rel); 35 jQuery.cookie("product_layout", "list"); 36 } 37 else 38 { 39 jQuery("#products-list-container").removeClass('list'); 40 jQuery("#products-list-container").addClass(this.rel); 41 jQuery.cookie("product_layout", "grid"); 42 } 43 return false; 44 }); 45}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.