]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixed has-favorites CSS
authorVincent Petry <pvince81@owncloud.com>
Mon, 15 Dec 2014 14:18:29 +0000 (15:18 +0100)
committerVincent Petry <pvince81@owncloud.com>
Mon, 15 Dec 2014 14:18:29 +0000 (15:18 +0100)
apps/files/css/files.css
apps/files/js/tagsplugin.js
apps/files/tests/js/tagspluginspec.js

index 7d482ccbb7a3b10c1167a85507e486f9800e9603..3829759a14ecd76ba7f7369cf3ab01c768f6f214 100644 (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;
 }
index cfde8bc6304bda5dce0a8cdbc6e25a1c1fcde239..b7bbb6daf546701c4b2c7e1b266aec48b2a85c8c 100644 (file)
 
                _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);
index 424017a9dc691735081e7ae8e9da32ce3aa9b449..66240575a5c5b1ecac3ed6ec5e508bb4e42dc5f0 100644 (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() {