From d185e8cc05d0b50b4f688e0e2bcba15f39b33f21 Mon Sep 17 00:00:00 2001 From: Eduardo Lundgren Date: Mon, 9 Jun 2008 06:20:15 +0000 Subject: - Added functional demo application - Removed datepicker folder from functional demo folder --- demos/functional/js/behaviour.functionaldemos.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 demos/functional/js/behaviour.functionaldemos.js (limited to 'demos/functional/js/behaviour.functionaldemos.js') diff --git a/demos/functional/js/behaviour.functionaldemos.js b/demos/functional/js/behaviour.functionaldemos.js new file mode 100644 index 000000000..8e375db28 --- /dev/null +++ b/demos/functional/js/behaviour.functionaldemos.js @@ -0,0 +1,13 @@ +$(document).ready(function() { + + $('.component-links a').click(function() { + var comp = $(this).attr('href').replace(/^#/, ""); + loadDemo(comp); + }); + + // hash listener + if (location.hash) { + loadDemo(location.hash.replace(/^#/, "")); + } + +}); \ No newline at end of file -- cgit v1.2.3