diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2018-06-18 08:01:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-18 08:01:52 +0200 |
commit | 0ad1f19a74a52e270b488dc04ffbbfd692cd68ce (patch) | |
tree | 831f9e397c36993afbd93c0d84b345f7c174ba1c /apps/files/js/fileactions.js | |
parent | c8e61cc252196a9d1d7c356a0961686f04ef9f9c (diff) | |
parent | 419d72e0eed300e5792f02c8d458a5da0367541d (diff) | |
download | nextcloud-server-0ad1f19a74a52e270b488dc04ffbbfd692cd68ce.tar.gz nextcloud-server-0ad1f19a74a52e270b488dc04ffbbfd692cd68ce.zip |
Merge pull request #9717 from nextcloud/feature/actions-menu
New Feature/actions file menu
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r-- | apps/files/js/fileactions.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index 4c0ccaf6451..3623663ed6c 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -692,21 +692,21 @@ OCA.Files.FileActions = FileActions; /** - * Replaces the download icon with a loading spinner and vice versa + * Replaces the button icon with a loading spinner and vice versa * - also adds the class disabled to the passed in element * - * @param {jQuery} $downloadButtonElement download fileaction + * @param {jQuery} $buttonElement The button element * @param {boolean} showIt whether to show the spinner(true) or to hide it(false) */ - OCA.Files.FileActions.updateFileActionSpinner = function($downloadButtonElement, showIt) { - var $icon = $downloadButtonElement.find('.icon'); + OCA.Files.FileActions.updateFileActionSpinner = function($buttonElement, showIt) { + var $icon = $buttonElement.find('.icon'); if (showIt) { var $loadingIcon = $('<span class="icon icon-loading-small"></span>'); $icon.after($loadingIcon); $icon.addClass('hidden'); } else { - $downloadButtonElement.find('.icon-loading-small').remove(); - $downloadButtonElement.find('.icon').removeClass('hidden'); + $buttonElement.find('.icon-loading-small').remove(); + $buttonElement.find('.icon').removeClass('hidden'); } }; |