summaryrefslogtreecommitdiffstats
path: root/WebContent
diff options
context:
space:
mode:
authorJouni Koivuviita <jouni.koivuviita@itmill.com>2010-04-12 14:53:57 +0000
committerJouni Koivuviita <jouni.koivuviita@itmill.com>2010-04-12 14:53:57 +0000
commited39c2772285bfcf41ff71933ae06254ac2fceb5 (patch)
tree8cbcb99b941f08a15fdc4d22e24e18b424e9d349 /WebContent
parent2c9373093f592407f9188d50c28e03b62cc54cb0 (diff)
downloadvaadin-framework-ed39c2772285bfcf41ff71933ae06254ac2fceb5.tar.gz
vaadin-framework-ed39c2772285bfcf41ff71933ae06254ac2fceb5.zip
Fix for demo-page history change.
svn changeset:12488/svn branch:6.3
Diffstat (limited to 'WebContent')
-rw-r--r--WebContent/index.html15
1 files 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 @@
</a>
</div>
<div class="col2">
- <a class="thumb" href="demo/img/runo.png" rel="zoombox" title="Runo theme mockup (actual implementation differs in some parts)" />
+ <a class="thumb" href="demo/img/runo.png" rel="zoombox" title="Runo theme mockup (actual implementation differs in some parts)">
<img src="demo/img/icons/runo.png" />
<span><strong>Runo</strong>Clean and easy to extend</span>
</a>
@@ -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