]> source.dussan.org Git - archiva.git/commitdiff
add a better application loader
authorOlivier Lamy <olamy@apache.org>
Wed, 25 Apr 2012 13:34:11 +0000 (13:34 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 25 Apr 2012 13:34:11 +0000 (13:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1330285 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/archiva.css
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/index.html

index ab0eb1aa922543ce210a395c9a800d89d1302a9b..b7827bde0b12a3fe873431b06902873859fc63d6 100644 (file)
@@ -110,3 +110,26 @@ footer {
     padding-bottom: 30px;
     padding-top: 10px;
 }
+
+
+/* CSS for loading message */
+#loadingDiv {
+    position: absolute;
+    left: 45%;
+    bottom: 50%;
+    z-index: 20001;
+    height: auto;
+    border: 1px solid #ccc;
+}
+#loadingDiv a {
+    color: #225588;
+}
+
+#loadingDiv .loading-indicator {
+    background: white;
+    color: #444;
+    font: bold 12px tahoma;
+    padding: 10px;
+    margin: 0;
+    height: auto;
+}
index 1f9d59cf0c5ad79323dce64d6c36612a2c4c82c4..8c95ebf02e17a10b3ed5cbb7a3413c2d49e45522 100644 (file)
@@ -29,7 +29,7 @@
     <div class="span10 columns">
       <div class="content">
         <div id="user-messages"></div>
-        <div id="main-content"><img src="images/medium-spinner.gif"/></div>
+        <div id="main-content"></div>
     </div>
   </div>
   </div>
                               require(['order!domReady','archiva/main'],function (domReady) {
                                   domReady.withResources(function () {
                                       startArchivaApplication();
+                                      $("#loadingDiv").hide();
                                   })
                               })
 
 
 
 </script>
+
+<div id="loadingDiv">
+  <div class="loading-indicator">
+    <img src="img/loading.gif" />
+    <span id="loading-msg">Loading</span>
+  </div>
+</div>
+
 <div id="dialog-spinner-modal" class="modal fade" style="display: block;">
   <div class="modal-header">
     <a class="close" href="#" data-dismiss="modal">&#215;</a>