From 6b5b5ec3a67c322b7566fc5e645008acf62e9dc6 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 7 Nov 2008 05:49:45 +0000 Subject: Use jquery.cookie to keep the same tab open when you refresh Add a switch to turn profiling on/off --- core/views/welcome.html.php | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'core/views') diff --git a/core/views/welcome.html.php b/core/views/welcome.html.php index ad58dd76..813b0ff6 100644 --- a/core/views/welcome.html.php +++ b/core/views/welcome.html.php @@ -110,7 +110,8 @@ text-decoration: none; } - + + @@ -143,10 +144,18 @@ show = function(section) { $("div.activity").slideUp(); $(section).slideDown(); + $.cookie("active_section", section); } + $(document).ready(function(){ + var active_section = $.cookie("active_section"); + if (!active_section) { + active_section = '#configuration'; + } + $(active_section).show() + }); -
+
@@ -177,6 +186,12 @@ (level ?> levels deep) +
  • Profiling: + get("use_profiler", false)): ?> + on + + off +
  • -- cgit v1.2.3