diff options
author | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2007-01-23 13:49:53 +0000 |
---|---|---|
committer | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2007-01-23 13:49:53 +0000 |
commit | ecd956be5ff63b82a84c6912932b1090c0bc845e (patch) | |
tree | fbfa7e17a9ef44b57c44c113c887cb3f4da70747 /src/com/itmill/toolkit/terminal/web/ThemeFunctionLibrary.java | |
parent | 9e890b35f05cef3f14bb86d0fefb27bebd3c8e19 (diff) | |
download | vaadin-framework-ecd956be5ff63b82a84c6912932b1090c0bc845e.tar.gz vaadin-framework-ecd956be5ff63b82a84c6912932b1090c0bc845e.zip |
bugfix
svn changeset:317/svn branch:toolkit
Diffstat (limited to 'src/com/itmill/toolkit/terminal/web/ThemeFunctionLibrary.java')
-rw-r--r-- | src/com/itmill/toolkit/terminal/web/ThemeFunctionLibrary.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/itmill/toolkit/terminal/web/ThemeFunctionLibrary.java b/src/com/itmill/toolkit/terminal/web/ThemeFunctionLibrary.java index 88029e05d4..136bbe3cd4 100644 --- a/src/com/itmill/toolkit/terminal/web/ThemeFunctionLibrary.java +++ b/src/com/itmill/toolkit/terminal/web/ThemeFunctionLibrary.java @@ -525,10 +525,10 @@ public class ThemeFunctionLibrary { WebBrowser.JAVASCRIPT_1_5) || browser .getJavaScriptVersion() .supports(WebBrowser.JSCRIPT_1_0))) { - script += "try { form = win.document.forms[\"itmill\"]; if (typeof form != 'undefined') form = win.document.forms[\"millstone\"];" + script += "try { form = win.document.forms[\"itmill\"]; if (typeof form == 'undefined') form = win.document.forms[\"millstone\"];" + "} catch (e) { form = null;}"; } else { - script += "form = win.document.forms[\"itmill\"]; if (typeof form != 'undefined') form = win.document.forms[\"millstone\"];"; + script += "form = win.document.forms[\"itmill\"]; if (typeof form == 'undefined') form = win.document.forms[\"millstone\"];"; } script += "if (form != null) {" + "form.submit();" |