aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/terminal
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/itmill/toolkit/terminal')
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java b/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java
index b5c1831a83..22735b07f2 100644
--- a/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java
+++ b/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java
@@ -999,8 +999,9 @@ public class ApplicationServlet extends HttpServlet {
// Warn if the widgetset has not been loaded after 15 seconds on
// inactivity
- page.write("<script type=\"text/javascript\">\n"
- + "setTimeout('if (typeof " + widgetset.replace('.', '_')
+ page.write("<script type=\"text/javascript\">\n");
+ page.write("//<![CDATA[\n");
+ page.write("setTimeout('if (typeof " + widgetset.replace('.', '_')
+ " == \"undefined\") {alert(\"Failed to load the widgetset: "
+ staticFilePath + "/" + WIDGETSET_DIRECTORY_PATH + widgetset
+ "/" + widgetset + ".nocache.js\")};',15000);\n"