From 2c4cd694403beef44aff0cd1e693d6a12371974d Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Sat, 20 Dec 2008 10:54:00 +0000 Subject: functional demos: show instructions when navigating back to no-hash --- demos/functional/js/behaviour.functionaldemos.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'demos/functional/js') diff --git a/demos/functional/js/behaviour.functionaldemos.js b/demos/functional/js/behaviour.functionaldemos.js index b7aa37c1c..54988d6ca 100644 --- a/demos/functional/js/behaviour.functionaldemos.js +++ b/demos/functional/js/behaviour.functionaldemos.js @@ -4,6 +4,9 @@ $(document).ready(function() { loadDemo( $(this).attr('href').replace(/^#/, "") ); }); - $.ajaxHistory.initialize(); + var instructions = $("#containerDemo").html(); + $.ajaxHistory.initialize(function() { + $("#containerDemo").html(instructions); + }); }); \ No newline at end of file -- cgit v1.2.3