Skip to content

Commit

Permalink
Fix whitespace and file action cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Nov 20, 2018
1 parent b79bb3a commit 053a5a4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
21 changes: 10 additions & 11 deletions apps/files/js/fileactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,17 +362,16 @@
// remove previous
$tr.find('.action-menu').remove();

if (this.actions.length > 0) {
var $el = this._renderInlineAction({
name: 'menu',
displayName: '',
iconClass: 'icon-more',
altText: t('files', 'Actions'),
action: this._showMenuClosure
}, false, context);

$el.addClass('permanent');
}
var $el = this._renderInlineAction({
name: 'menu',
displayName: '',
iconClass: 'icon-more',
altText: t('files', 'Actions'),
action: this._showMenuClosure
}, false, context);

$el.addClass('permanent');

},

/**
Expand Down
3 changes: 2 additions & 1 deletion apps/files_sharing/js/public.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ OCA.Sharing.PublicApp = {
// Remove the link. This means that files without a default action fail hard
$tr.find('a.name').attr('href', '#');

delete this.fileActions.actions.all.Download;
this.fileActions.actions.all = {};
}
return $tr;
};
Expand Down Expand Up @@ -299,6 +299,7 @@ OCA.Sharing.PublicApp = {

if (hideDownload === 'true') {
this.fileList.$el.find('#headerSelection').remove();
this.fileList.$el.find('.summary').find('td:first-child').remove();
}
}

Expand Down

0 comments on commit 053a5a4

Please sign in to comment.