diff options
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r-- | apps/files/js/files.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 3b7c892f5eb..5e9ec53fc9d 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -301,26 +301,6 @@ OC.redirect(url + '&downloadStartSecret=' + randomToken); OC.Util.waitFor(checkForDownloadCookie, 500); - }, - - /** - * Replaces the download icon with a loading spinner and vice versa - * - also adds the class disabled to the passed in element - * - * @param downloadButtonElement download fileaction - * @param {boolean} showIt whether to show the spinner(true) or to hide it(false) - */ - updateFileActionSpinner: function(downloadButtonElement, showIt) { - var icon = downloadButtonElement.find('img'), - sourceImage = icon.attr('src'); - - if(showIt) { - downloadButtonElement.addClass('disabled'); - icon.attr('src', sourceImage.replace('actions/download.svg', 'loading-small.gif')); - } else { - downloadButtonElement.removeClass('disabled'); - icon.attr('src', sourceImage.replace('loading-small.gif', 'actions/download.svg')); - } } }; |