r794 - trunk/demos/functional/js
Author: joern.zaefferer
Date: Mon Oct 13 09:50:57 2008
New Revision: 794
Modified:
trunk/demos/functional/js/behaviour.functionaldemos.js
Log:
functional demos: fixed remote history plugin usage
Modified: trunk/demos/functional/js/behaviour.functionaldemos.js
==============================================================================
--- trunk/demos/functional/js/behaviour.functionaldemos.js (original)
+++ trunk/demos/functional/js/behaviour.functionaldemos.js Mon Oct 13
09:50:57 2008
@@ -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();
});