summaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactions.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-08-04 18:25:35 +0200
committerVincent Petry <pvince81@owncloud.com>2015-08-10 14:12:34 +0200
commitdd4e0a8253d108e8b9cf9444990164d66b3d75f0 (patch)
tree93ad41200503e9006e955e7ee52505e3dc40cd58 /apps/files/js/fileactions.js
parentca34921cdf8db4075906b3531390aa1b1ae9216c (diff)
downloadnextcloud-server-dd4e0a8253d108e8b9cf9444990164d66b3d75f0.tar.gz
nextcloud-server-dd4e0a8253d108e8b9cf9444990164d66b3d75f0.zip
Make file action menu icon permanent
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r--apps/files/js/fileactions.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index 3c13f087f7a..6b95e3ee6cd 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -294,7 +294,6 @@
* @param {OCA.Files.FileActionContext} context action context
*/
_defaultRenderAction: function(actionSpec, isDefault, context) {
- var name = actionSpec.name;
if (!isDefault) {
var params = {
name: actionSpec.name,
@@ -348,13 +347,16 @@
_renderMenuTrigger: function($tr, context) {
// remove previous
$tr.find('.action-menu').remove();
- $tr.find('.fileactions').append(this._renderInlineAction({
+
+ var $el = this._renderInlineAction({
name: 'menu',
displayName: '',
icon: OC.imagePath('core', 'actions/more'),
altText: t('files', 'Actions'),
action: this._showMenuClosure
- }, false, context));
+ }, false, context);
+
+ $el.addClass('permanent');
},
/**