Skip to content
Permalink
Browse files

functional demos: fixed remote history plugin usage

  • Loading branch information...
jzaefferer committed Oct 13, 2008
1 parent e24e2ae commit 59109b7894a3e6d203c7c711984860def740cff3
Showing with 2 additions and 8 deletions.
  1. +2 −8 demos/functional/js/behaviour.functionaldemos.js
@@ -1,15 +1,9 @@
$(document).ready(function() {

$('.component-links a').click(function() {
var comp = $(this).attr('href').replace(/^#/, "");
loadDemo(comp);
$('.component-links a').history(function() {
loadDemo( $(this).attr('href').replace(/^#/, "") );
});

// hash listener
if (location.hash) {
loadDemo(location.hash.replace(/^#/, ""));
}

$.ajaxHistory.initialize();

});

0 comments on commit 59109b7

Please sign in to comment.
You can’t perform that action at this time.