From d5cd5c11737349d3c9bc3fdb8076f25a4f91bc66 Mon Sep 17 00:00:00 2001 From: Phillip Jackson Date: Wed, 30 Mar 2016 18:51:09 -0400 Subject: [PATCH] Revert "Replace block-layered-nav on ajax, instead of nesting" --- skin/frontend/base/default/js/catalin_seo/handler-ee-rwd.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skin/frontend/base/default/js/catalin_seo/handler-ee-rwd.js b/skin/frontend/base/default/js/catalin_seo/handler-ee-rwd.js index 27778dc..ee36e09 100644 --- a/skin/frontend/base/default/js/catalin_seo/handler-ee-rwd.js +++ b/skin/frontend/base/default/js/catalin_seo/handler-ee-rwd.js @@ -43,7 +43,7 @@ var CatalinSeoHandler = { onSuccess: function (transport) { if (transport.responseJSON) { $('catalog-listing').update(transport.responseJSON.listing); - $$('.block-layered-nav')[0].replace(transport.responseJSON.layer); + $$('.block-layered-nav')[0].update(transport.responseJSON.layer); self.pushState({ listing: transport.responseJSON.listing, layer: transport.responseJSON.layer @@ -184,7 +184,7 @@ var CatalinSeoHandler = { self.pushState({ listing: $('catalog-listing').innerHTML, - layer: $$('.block-layered-nav')[0].outerHTML + layer: $$('.block-layered-nav')[0].innerHTML }, document.location.href, true); // Bind to StateChange Event @@ -192,7 +192,7 @@ var CatalinSeoHandler = { if (event.type == 'popstate') { var State = History.getState(); $('catalog-listing').update(State.data.listing); - $$('.block-layered-nav')[0].replace(State.data.layer); + $$('.block-layered-nav')[0].update(State.data.layer); self.ajaxListener(); self.toggleContent(); self.alignProductGridActions();