summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-12-15 15:18:29 +0100
committerVincent Petry <pvince81@owncloud.com>2014-12-15 15:18:29 +0100
commit33eb4483b297d12b7cb76e5a3df25f2d641a96cb (patch)
tree93d80be2752c3eccee60f2160821bd69bd5e4375
parentfb220a1e09fdc8a6a932567eaaba4639aa150e2e (diff)
downloadnextcloud-server-33eb4483b297d12b7cb76e5a3df25f2d641a96cb.tar.gz
nextcloud-server-33eb4483b297d12b7cb76e5a3df25f2d641a96cb.zip
Fixed has-favorites CSS
-rw-r--r--apps/files/css/files.css2
-rw-r--r--apps/files/js/tagsplugin.js2
-rw-r--r--apps/files/tests/js/tagspluginspec.js3
3 files changed, 5 insertions, 2 deletions
diff --git a/apps/files/css/files.css b/apps/files/css/files.css
index 7d482ccbb7a..3829759a14e 100644
--- a/apps/files/css/files.css
+++ b/apps/files/css/files.css
@@ -291,7 +291,7 @@ table td.filename .nametext {
max-width: 800px;
height: 100%;
}
-#fileList.has-favorites td.filename a.name {
+.has-favorites #fileList td.filename a.name {
left: 50px;
margin-right: 50px;
}
diff --git a/apps/files/js/tagsplugin.js b/apps/files/js/tagsplugin.js
index cfde8bc6304..b7bbb6daf54 100644
--- a/apps/files/js/tagsplugin.js
+++ b/apps/files/js/tagsplugin.js
@@ -116,7 +116,7 @@
_extendFileList: function(fileList) {
// extend row prototype
- fileList.$fileList.addClass('has-favorites');
+ 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 424017a9dc6..66240575a5c 100644
--- a/apps/files/tests/js/tagspluginspec.js
+++ b/apps/files/tests/js/tagspluginspec.js
@@ -71,6 +71,9 @@ 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('sends request to server and updates icon', function() {