diff options
author | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2007-01-23 13:28:20 +0000 |
---|---|---|
committer | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2007-01-23 13:28:20 +0000 |
commit | 9e890b35f05cef3f14bb86d0fefb27bebd3c8e19 (patch) | |
tree | 6a0599ddf339e1d74668c7967473aa3ad9f3216b /src/com | |
parent | c8ae00aed08faa535d13e5a4fe5b79c7f78e3354 (diff) | |
download | vaadin-framework-9e890b35f05cef3f14bb86d0fefb27bebd3c8e19.tar.gz vaadin-framework-9e890b35f05cef3f14bb86d0fefb27bebd3c8e19.zip |
Trying to make it more robust
svn changeset:316/svn branch:toolkit
Diffstat (limited to 'src/com')
-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 22a883e218..88029e05d4 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 (form == null) 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 (form == null) 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();" |