]> source.dussan.org Git - sonarqube.git/commitdiff
remove actions from rule lang and tags
authorStas Vilchik <vilchiks@gmail.com>
Fri, 6 Mar 2015 08:42:03 +0000 (09:42 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 9 Mar 2015 10:08:22 +0000 (11:08 +0100)
server/sonar-web/src/main/hbs/coding-rules/coding-rules-workspace-list-item.hbs
server/sonar-web/src/main/js/coding-rules/workspace-list-view.js

index 75f4c415e3147391be69e4397df70b2248cae082..b7202d164c79fd8882797941bb1445836362e11a 100644 (file)
           <span class="text-danger">{{status}}</span>
           &nbsp;&nbsp;&nbsp;
         {{/notEq}}
-        <a class="js-lang link-no-underline" data-lang="{{lang}}">{{langName}}</a>
+        <span class="note">{{langName}}</span>
         {{#notEmpty tags}}
           &nbsp;&nbsp;&nbsp;
           <i class="icon-tags"></i>
-          {{#each tags}}
-            <a class="js-tag link-no-underline" data-tag="{{this}}">{{this}}</a>
-          {{/each}}
+          <span class="note">{{join tags ', '}}</span>
         {{/notEmpty}}
       </div>
     </td>
index b9fe6643b678c0fbf2ac49d561906c91c3a29658..da435074b7f8f02b06a7f5e7be32d4577875d9ee 100644 (file)
@@ -24,21 +24,12 @@ define([
   'templates/coding-rules'
 ], function (WorkspaceListView, WorkspaceListItemView, WorkspaceListEmptyView) {
 
-  var $ = jQuery;
-
   return WorkspaceListView.extend({
     template: Templates['coding-rules-workspace-list'],
     itemView: WorkspaceListItemView,
     itemViewContainer: '.js-list',
     emptyView: WorkspaceListEmptyView,
 
-    events: function () {
-      return {
-        'click .js-tag': 'onTagClick',
-        'click .js-lang': 'onLangClick'
-      };
-    },
-
     bindShortcuts: function () {
       WorkspaceListView.prototype.bindShortcuts.apply(this, arguments);
       var that = this;
@@ -46,24 +37,6 @@ define([
         that.options.app.controller.showDetailsForSelected();
         return false;
       });
-    },
-
-    onTagClick: function (e) {
-      var tag = $(e.currentTarget).data('tag');
-      this.selectTag(tag);
-    },
-
-    onLangClick: function (e) {
-      var lang = $(e.currentTarget).data('lang');
-      this.selectLang(lang);
-    },
-
-    selectTag: function (tag) {
-      this.options.app.state.setQuery({ tags: tag });
-    },
-
-    selectLang: function (lang) {
-      this.options.app.state.setQuery({ languages: lang });
     }
   });