Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 735ba5f

Browse files
committed
push the pattern instead of updating the iframe location on click
1 parent c2ebc33 commit 735ba5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/styleguide/js/styleguide.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,8 @@
449449
// having it outside fixes an auto-close bug i ran into
450450
$('.sg-nav a').not('.sg-acc-handle').on("click", function(e){
451451

452-
// update the iframe
453-
document.getElementById("sg-viewport").contentWindow.location.replace(this.href);
452+
// update the iframe via the history api handler
453+
urlHandler.pushPattern($(this).attr("data-patternpartial"));
454454

455455
// close up the menu
456456
$(this).parents('.sg-acc-panel').toggleClass('active');

0 commit comments

Comments
 (0)