Fixed has-favorites CSS

This commit is contained in:
Vincent Petry 2014-12-15 15:18:29 +01:00
parent fb220a1e09
commit 33eb4483b2
3 changed files with 5 additions and 2 deletions

View file

@ -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;
}

View file

@ -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);

View file

@ -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() {