From dd4e0a8253d108e8b9cf9444990164d66b3d75f0 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 4 Aug 2015 18:25:35 +0200 Subject: Make file action menu icon permanent --- apps/files/js/fileactions.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'apps/files/js/fileactions.js') 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'); }, /** -- cgit v1.2.3