diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2008-12-20 10:54:00 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2008-12-20 10:54:00 +0000 |
commit | 2c4cd694403beef44aff0cd1e693d6a12371974d (patch) | |
tree | a9949f5a5d57876bd39ee5166698ecfa5498d7dd /demos/functional/js | |
parent | de2bf2da55224fcda0907a056eb19ad1f28a4f64 (diff) | |
download | jquery-ui-2c4cd694403beef44aff0cd1e693d6a12371974d.tar.gz jquery-ui-2c4cd694403beef44aff0cd1e693d6a12371974d.zip |
functional demos: show instructions when navigating back to no-hash
Diffstat (limited to 'demos/functional/js')
-rw-r--r-- | demos/functional/js/behaviour.functionaldemos.js | 5 |
1 files changed, 4 insertions, 1 deletions
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 |