From: Matti Tahvonen Date: Fri, 2 Jan 2009 14:17:48 +0000 (+0000) Subject: fixes #2413, adds oophm debug parameter to demo apps if parameter exists when loaded... X-Git-Tag: 6.7.0.beta1~3419 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=418d28e9be18fc08830ff684569f825df3357108;p=vaadin-framework.git fixes #2413, adds oophm debug parameter to demo apps if parameter exists when loaded index page svn changeset:6396/svn branch:trunk --- diff --git a/WebContent/index.html b/WebContent/index.html index d891b074d8..10f56a1f5a 100644 --- a/WebContent/index.html +++ b/WebContent/index.html @@ -77,6 +77,22 @@ if(fb.value == fb._originalValue) fb.value = ""; } + + try { + + if(window.location.search && -1 != window.location.search.indexOf('gwt.hosted')) { + var hostedParam = window.location.search; + var demolinks = document.getElementsByTagName("a"); + for (var k = 0; k < demolinks.length; k++) { + var link = demolinks[k]; + if(link.className.indexOf + ("demoapp") != -1) { + link.href = link.href + hostedParam; + } + } + } + } catch(e) {} + }, togglePanel : function(which) { @@ -156,10 +172,10 @@

Demos

@@ -172,12 +188,12 @@