"use strict";
document.cookie = "catView=grid";
// don't display products on the main "products page"
- if ((window.location.href.indexOf("products") >= 0)){
+ if ((window.location.href.indexOf("products-2") >= 0)){
$("#gridView").css("display", "none");
$("#listView").css("display", "none");
$("#grid").on("click", function (e) {
});
}
// hide product display initially
- if ((window.location.href.indexOf("products/?michsci_category") >= 0)){
+ if ((window.location.href.indexOf("products-2/?michsci_category") >= 0)){
$("#productsView").css("display", "inherit");
$("#categoriesView").css("display", "none");
$("#gridView").css("display", "inherit");
}
// navigate back to products page if on single product page
- if ((window.location.href.indexOf("products/?pagename") >= 0)) {
+ if ((window.location.href.indexOf("products-2/?pagename") >= 0)) {
// $("#viewBtns").css("display", "none");
$("#grid").on("click", function (e) {
document.cookie = "view=grid";
});
}
// change output view from list to grid
- if (!(window.location.href.indexOf("products/?pagename") >= 0)) {
+ if (!(window.location.href.indexOf("products-2/?pagename") >= 0)) {
$("#grid").on("click", function (e) {
document.cookie = "view=grid";
location.reload();
$("." + $(this).val()).show();
});
// hide products on front page, show all products if on products page
- if($("#tagBox :checkbox:checked").length === 0 && !(window.location.href.indexOf("products/?michsci_category") >= 0)){
+ if($("#tagBox :checkbox:checked").length === 0 && !(window.location.href.indexOf("products-2/?michsci_category") >= 0)){
$("#categoriesGridView").show();
$("#categoriesListView").show();
$("#gridView").css("display", "none");
"use strict";
document.cookie = "catView=grid";
// don't display products on the main "products page"
- if ((window.location.href.indexOf("products") >= 0)){
+ if ((window.location.href.indexOf("products-2") >= 0)){
$("#gridView").css("display", "none");
$("#listView").css("display", "none");
$("#grid").on("click", function (e) {
});
}
// hide product display initially
- if ((window.location.href.indexOf("products/?michsci_category") >= 0)){
+ if ((window.location.href.indexOf("products-2/?michsci_category") >= 0)){
$("#productsView").css("display", "inherit");
$("#categoriesView").css("display", "none");
$("#gridView").css("display", "inherit");
}
// navigate back to products page if on single product page
- if ((window.location.href.indexOf("products/?pagename") >= 0)) {
+ if ((window.location.href.indexOf("products-2/?pagename") >= 0)) {
// $("#viewBtns").css("display", "none");
$("#grid").on("click", function (e) {
document.cookie = "view=grid";
});
}
// change output view from list to grid
- if (!(window.location.href.indexOf("products/?pagename") >= 0)) {
+ if (!(window.location.href.indexOf("products-2/?pagename") >= 0)) {
$("#grid").on("click", function (e) {
document.cookie = "view=grid";
location.reload();
$("." + $(this).val()).show();
});
// hide products on front page, show all products if on products page
- if($("#tagBox :checkbox:checked").length === 0 && !(window.location.href.indexOf("products/?michsci_category") >= 0)){
+ if($("#tagBox :checkbox:checked").length === 0 && !(window.location.href.indexOf("products-2/?michsci_category") >= 0)){
$("#categoriesGridView").show();
$("#categoriesListView").show();
$("#gridView").css("display", "none");