Fixed has-favorites CSS

remotes/origin/fix-10825
Vincent Petry 10 years ago
parent fb220a1e09
commit 33eb4483b2
  1. 2
      apps/files/css/files.css
  2. 2
      apps/files/js/tagsplugin.js
  3. 3
      apps/files/tests/js/tagspluginspec.js

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

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

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

Loading…
Cancel
Save