Skip to content

Commit

Permalink
Merge pull request #51 from caciobanu/revert-50-ee-replace
Browse files Browse the repository at this point in the history
Revert "Replace block-layered-nav on ajax, instead of nesting"
  • Loading branch information
philwinkle committed Mar 30, 2016
2 parents e58062e + d5cd5c1 commit 8291061
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions skin/frontend/base/default/js/catalin_seo/handler-ee-rwd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -184,15 +184,15 @@ 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
History.Adapter.bind(window, 'popstate', function (event) {
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();
Expand Down

0 comments on commit 8291061

Please sign in to comment.