From ed39c2772285bfcf41ff71933ae06254ac2fceb5 Mon Sep 17 00:00:00 2001 From: Jouni Koivuviita Date: Mon, 12 Apr 2010 14:53:57 +0000 Subject: [PATCH] Fix for demo-page history change. svn changeset:12488/svn branch:6.3 --- WebContent/index.html | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/WebContent/index.html b/WebContent/index.html index eb4a2eda40..bbed84ec6e 100644 --- a/WebContent/index.html +++ b/WebContent/index.html @@ -135,7 +135,7 @@
- + RunoClean and easy to extend @@ -457,12 +457,23 @@ tab.addClass("selected"); } jQuery.data(tab[0], "content", li); + tab.click(function() { + setTimeout(function() { + pageload(li[0].id); + },100); + }); }); content.height(height); } function pageload(hash) { + hash = hash.replace(/^.*#/, '').toLowerCase(); + var tab = $("#tab_"+hash); var tabs = $("#tabs"); + var sel = jQuery.data(tabs[0], "selected")[0]; + if(sel == tab[0]) + return; + var content = $("#reasons"); // Hide previous @@ -470,8 +481,6 @@ //jQuery.data(content[0], "open").fadeOut("fast"); jQuery.data(content[0], "open").hide(); - hash = hash.replace(/^.*#/, ''); - var tab = $("#tab_"+hash); var tabContent = jQuery.data(tab[0], "content"); // Show new -- 2.39.5