]> source.dussan.org Git - sonarqube.git/commitdiff
New Issues Page: Hide results list during request
authorStas Vilchik <vilchiks@gmail.com>
Wed, 15 Jan 2014 08:46:05 +0000 (14:46 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 15 Jan 2014 08:46:05 +0000 (14:46 +0600)
sonar-server/src/main/webapp/javascripts/navigator/issues-app.js
sonar-server/src/main/webapp/stylesheets/navigator.css
sonar-server/src/main/webapp/stylesheets/navigator/base.css
sonar-server/src/main/webapp/stylesheets/navigator/base.less

index df0851186fce90a806ae1334fc9b48a03662bf9c..b2e3ae5301baa83992ee1e40c8affc596039df4c 100644 (file)
@@ -216,14 +216,22 @@ jQuery(function() {
 
     this.storeQuery(query, this.issues.sorting);
 
+    var that = this;
+    this.issuesView.$el.addClass('fetching');
     if (firstPage) {
       this.issues.fetch({
-        data: fetchQuery
+        data: fetchQuery,
+        success: function() {
+          that.issuesView.$el.removeClass('fetching');
+        }
       });
     } else {
       this.issues.fetch({
         data: fetchQuery,
-        remove: false
+        remove: false,
+        success: function() {
+          that.issuesView.$el.removeClass('fetching');
+        }
       });
     }
   };
index 479c74f1043e103307df65ba402a3b20d3bc31d7..456acc9d921a9d97cf93ee7f470cfa980726ef4a 100644 (file)
 .navigator-results-list > li.active .line:last-child {
   border-bottom-color: #e1e1e1;
 }
+.navigator-results-list.fetching {
+  position: relative;
+}
+.navigator-results-list.fetching:before {
+  content: " ";
+  position: absolute;
+  top: 0;
+  bottom: 0;
+  left: 0;
+  right: 0;
+  background-color: rgba(255, 255, 255, 0.7);
+}
 .navigator-results-no-issues {
   padding-top: 20%;
   color: #999;
index 90e13bebe89e9dcdf4fc3f57321d8106ba60ab6a..4d4430bf99f09358ed9f5c92db07da6b531ac2a6 100644 (file)
 .navigator-results-list > li.active .line:last-child {
   border-bottom-color: #e1e1e1;
 }
+.navigator-results-list.fetching {
+  position: relative;
+}
+.navigator-results-list.fetching:before {
+  content: " ";
+  position: absolute;
+  top: 0;
+  bottom: 0;
+  left: 0;
+  right: 0;
+  background-color: rgba(255, 255, 255, 0.7);
+}
 .navigator-results-no-issues {
   padding-top: 20%;
   color: #999;
index fa3660d774691c6f6316e0d88623457e527681a5..98f1d5fe0a0036d7ee3f602b0e2a10b043afa035 100644 (file)
@@ -90,7 +90,6 @@
 
 .navigator-results-list {
 
-
   & > li {
     padding-top: @navigatorPadding;
     cursor: pointer;
 
   }
 
+
+  &.fetching {
+    position: relative;
+
+    &:before {
+      content: " ";
+      position: absolute;
+      top: 0; bottom: 0; left: 0; right: 0;
+      background-color: rgba(255, 255, 255, 0.7);
+    }
+  }
+
 }
 
 .navigator-results-no-issues {