From 59109b7894a3e6d203c7c711984860def740cff3 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Mon, 13 Oct 2008 16:50:57 +0000 Subject: functional demos: fixed remote history plugin usage --- demos/functional/js/behaviour.functionaldemos.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'demos') diff --git a/demos/functional/js/behaviour.functionaldemos.js b/demos/functional/js/behaviour.functionaldemos.js index 19393476c..46ed6c97b 100644 --- a/demos/functional/js/behaviour.functionaldemos.js +++ b/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(); }); \ No newline at end of file -- cgit v1.2.3