From 418d28e9be18fc08830ff684569f825df3357108 Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Fri, 2 Jan 2009 14:17:48 +0000 Subject: [PATCH] fixes #2413, adds oophm debug parameter to demo apps if parameter exists when loaded index page svn changeset:6396/svn branch:trunk --- WebContent/index.html | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) 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 @@ -- 2.39.5