From 7ee2192c29ea3da08fe2c6ba361388eb6e3a6877 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 22 Dec 2020 13:33:54 +0000 Subject: provide some info and remove unused code --- view/js/mod_cloud.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/view/js/mod_cloud.js b/view/js/mod_cloud.js index 35a28d3b9..5e7740264 100644 --- a/view/js/mod_cloud.js +++ b/view/js/mod_cloud.js @@ -68,6 +68,7 @@ $(document).ready(function () { close_and_deactivate_all_panels(); $('body').css('cursor', 'wait'); + $.jGrowl('Please stand by while your download is being prepared...', { sticky: false, theme: 'info', life: 10000 }); let data = [ {name: 'attach_path', value: window.location.pathname}, @@ -295,6 +296,7 @@ $(document).ready(function () { close_and_deactivate_all_panels(); $('body').css('cursor', 'wait'); + $.jGrowl('Please stand by while your download is being prepared...', { sticky: false, theme: 'info', life: 10000 }); post_data.push( {name: 'attach_path', value: window.location.pathname}, @@ -307,16 +309,7 @@ $(document).ready(function () { window.location.href = '/attach/download?token=' + data.token; } }); -/* - // some trickery to trigger download action via ajax - var form = $('
').attr('action', 'attach').attr('method', 'post'); - form.append($("").attr('type', 'hidden').attr('name', 'attach_path').attr('value', window.location.pathname)); - form.append($("").attr('type', 'hidden').attr('name', 'channel_id').attr('value', channelId)); - post_data.each(function () { - form.append($("").attr('type', 'hidden').attr('name', 'attach_ids[]').attr('value', this.value)); - }); - form.appendTo('body').submit().remove(); -*/ + }); $('#cloud-multi-tool-delete-btn').on('click', function (e) { -- cgit v1.2.3