]> source.dussan.org Git - sonarqube.git/commitdiff
New Issues Page: load rule only once
authorStas Vilchik <vilchiks@gmail.com>
Fri, 7 Feb 2014 07:40:28 +0000 (13:40 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 7 Feb 2014 07:40:28 +0000 (13:40 +0600)
sonar-server/src/main/webapp/javascripts/navigator/issues.js

index 13f91b619bbb66e74313e14a7fd47db91dbeb3d7..04dec8129cca275cf0cb419b1595360b383255cd 100644 (file)
@@ -851,12 +851,14 @@ jQuery(function() {
 
     fetchRule: function() {
       var that = this;
-      this.$('#tab-issue-rule').addClass('navigator-fetching');
-      this.rule.fetch({
-        success: function() {
-          that.$('#tab-issue-rule').removeClass('navigator-fetching');
-        }
-      });
+      if (!this.rule.has('name')) {
+        this.$('#tab-issue-rule').addClass('navigator-fetching');
+        this.rule.fetch({
+          success: function() {
+            that.$('#tab-issue-rule').removeClass('navigator-fetching');
+          }
+        });
+      }
     },