james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r833723 - in /james/hupa/trunk: client/src/main/java/org/apache/hupa/client/Hupa.java client/war/Hupa.html war/Hupa.html
Date Sat, 07 Nov 2009 17:45:57 GMT
Author: norman
Date: Sat Nov  7 17:45:56 2009
New Revision: 833723

URL: http://svn.apache.org/viewvc?rev=833723&view=rev
Log:
Display Loading image while bootstrap app

Modified:
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java
    james/hupa/trunk/client/war/Hupa.html
    james/hupa/trunk/war/Hupa.html

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java?rev=833723&r1=833722&r2=833723&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java Sat Nov  7 17:45:56
2009
@@ -28,13 +28,19 @@
 
 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.core.client.GWT;
+import com.google.gwt.user.client.DOM;
 import com.google.gwt.user.client.ui.RootPanel;
 
 public class Hupa implements EntryPoint{
     private final HupaGinjector injector = GWT.create(HupaGinjector.class);
     
     public void onModuleLoad() {
-        
+        // remove the loading message from the browser
+        com.google.gwt.user.client.Element loading = DOM.getElementById("loading");
+
+        DOM.removeChild(RootPanel.getBodyElement(), loading);
+
+
         AppPresenter aPres = injector.getAppPresenter();
         aPres.bind();
        

Modified: james/hupa/trunk/client/war/Hupa.html
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/war/Hupa.html?rev=833723&r1=833722&r2=833723&view=diff
==============================================================================
--- james/hupa/trunk/client/war/Hupa.html (original)
+++ james/hupa/trunk/client/war/Hupa.html Sat Nov  7 17:45:56 2009
@@ -34,6 +34,7 @@
   <!-- to create a completely dynamic UI.        -->
   <!--                                           -->
   <body oncontextmenu="return false;">
+    <div id="loading" align="center"><img src="images/ajax-loader.gif"> Loading
Webmail...</div>
     <!-- OPTIONAL: include this if you want history support -->
     <iframe src="javascript:''"  id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>
   
     <iframe src="" id="__download" style="width:0;height:0;border:0"></iframe>


Modified: james/hupa/trunk/war/Hupa.html
URL: http://svn.apache.org/viewvc/james/hupa/trunk/war/Hupa.html?rev=833723&r1=833722&r2=833723&view=diff
==============================================================================
--- james/hupa/trunk/war/Hupa.html (original)
+++ james/hupa/trunk/war/Hupa.html Sat Nov  7 17:45:56 2009
@@ -34,6 +34,7 @@
   <!-- to create a completely dynamic UI.        -->
   <!--                                           -->
   <body oncontextmenu="return false;">
+    <div id="loading"><img src="images/ajax-loader.gif"> Loading Webmail...</div>

     <!-- OPTIONAL: include this if you want history support -->
     <iframe src="javascript:''"  id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>
   
     <iframe src="" id="__download" style="width:0;height:0;border:0"></iframe>




---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message