Skip to content

Commit

Permalink
Add icon on rendering-row
Browse files Browse the repository at this point in the history
  • Loading branch information
felixheidecke committed Oct 30, 2019
1 parent e9cf03e commit 48eb14e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,6 @@
this.updateEmptyContent();
}

this._setShareTreeIcons()
this._setShareTreeView()

return $tr;
Expand Down Expand Up @@ -1404,6 +1403,10 @@
tr.addClass('hidden-file');
}

if(this.partOfSharePath()) {
filenameTd.find('.thumbnail:not(.sharetree-item)').addClass('sharetree-item');
}

// display actions
this.fileActions.display(filenameTd, !options.silent, this);

Expand Down Expand Up @@ -1840,13 +1843,13 @@
},

_setShareTreeIcons: function() {

if (!this.partOfSharePath())
return

// Add share-tree icon to files and folders
// each per <tr> in the table
this.$el.find('#fileList tr td.filename .thumbnail:not(.sharetree-item)').addClass('sharetree-item')
this.$fileList.find('tr td.filename .thumbnail:not(.sharetree-item)').addClass('sharetree-item')

},

_setShareTreeView: function() {
Expand Down

0 comments on commit 48eb14e

Please sign in to comment.