diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2008-10-13 16:50:57 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2008-10-13 16:50:57 +0000 |
commit | 59109b7894a3e6d203c7c711984860def740cff3 (patch) | |
tree | 2489e06c08ffedbd940504b80bda239224741ed8 /demos | |
parent | e24e2aeb7b7a0735264c74352f945634e4beee81 (diff) | |
download | jquery-ui-59109b7894a3e6d203c7c711984860def740cff3.tar.gz jquery-ui-59109b7894a3e6d203c7c711984860def740cff3.zip |
functional demos: fixed remote history plugin usage
Diffstat (limited to 'demos')
-rw-r--r-- | demos/functional/js/behaviour.functionaldemos.js | 10 |
1 files changed, 2 insertions, 8 deletions
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 |