From 6b8713e8b6f45f79ec7cffd150c7f0136d7fb5b9 Mon Sep 17 00:00:00 2001 From: Daniel Calviño Sánchez Date: Thu, 28 Sep 2017 16:03:00 +0200 Subject: Remove "has-favorites" class from file list table MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "has-favorites" CSS class is no longer used after moving the favorite mark to the top right corner of the thumbnail, so there is no need to add it to the table. Signed-off-by: Daniel Calviño Sánchez --- apps/files/js/tagsplugin.js | 1 - apps/files/tests/js/tagspluginspec.js | 3 --- 2 files changed, 4 deletions(-) diff --git a/apps/files/js/tagsplugin.js b/apps/files/js/tagsplugin.js index caa7b731f78..2286477750c 100644 --- a/apps/files/js/tagsplugin.js +++ b/apps/files/js/tagsplugin.js @@ -162,7 +162,6 @@ _extendFileList: function(fileList) { // extend row prototype - fileList.$el.addClass('has-favorites'); var oldCreateRow = fileList._createRow; fileList._createRow = function(fileData) { var $tr = oldCreateRow.apply(this, arguments); diff --git a/apps/files/tests/js/tagspluginspec.js b/apps/files/tests/js/tagspluginspec.js index b76b3c02dd9..363a8bb0e19 100644 --- a/apps/files/tests/js/tagspluginspec.js +++ b/apps/files/tests/js/tagspluginspec.js @@ -71,9 +71,6 @@ describe('OCA.Files.TagsPlugin tests', function() { expect($tr.attr('data-tags').split('|')).toEqual(['tag1', 'tag2', OC.TAG_FAVORITE]); expect($tr.attr('data-favorite')).toEqual('true'); }); - it('adds has-favorites class on table', function() { - expect(fileList.$el.hasClass('has-favorites')).toEqual(true); - }); }); describe('Applying tags', function() { it('through FileActionsMenu sends request to server and updates icon', function() { -- cgit v1.2.3