aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactions.js
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-11-20 12:20:06 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-11-20 19:46:49 +0100
commit78056a3bef15c04af19b256915415f413cb561f2 (patch)
tree468aad968ed5cc9e4127f35ec0f6a2cb187f8c99 /apps/files/js/fileactions.js
parentfc99811d0a4935eda1c7ea3d94ae1b50b8cc4b8c (diff)
downloadnextcloud-server-78056a3bef15c04af19b256915415f413cb561f2.tar.gz
nextcloud-server-78056a3bef15c04af19b256915415f413cb561f2.zip
Fix whitespace and file action cleanup
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r--apps/files/js/fileactions.js21
1 files changed, 10 insertions, 11 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index 10fedc88288..2981fb64c11 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -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');
+
},
/**