summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2017-09-28 16:03:00 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-10-19 01:46:13 +0200
commit6b8713e8b6f45f79ec7cffd150c7f0136d7fb5b9 (patch)
tree54c6e13edb008f358cfaff7928abef57fb5fd595
parent415ac9b3ac0e3f1f563b570f658d2622fee66c3f (diff)
downloadnextcloud-server-6b8713e8b6f45f79ec7cffd150c7f0136d7fb5b9.tar.gz
nextcloud-server-6b8713e8b6f45f79ec7cffd150c7f0136d7fb5b9.zip
Remove "has-favorites" class from file list table
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 <danxuliu@gmail.com>
-rw-r--r--apps/files/js/tagsplugin.js1
-rw-r--r--apps/files/tests/js/tagspluginspec.js3
2 files changed, 0 insertions, 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() {