aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-12-22 13:33:54 +0000
committerMario <mario@mariovavti.com>2020-12-22 13:33:54 +0000
commit7ee2192c29ea3da08fe2c6ba361388eb6e3a6877 (patch)
treeb181eaec67bd85be645e7b3bd4572d8876c12192
parent3a38292bab234e531e0bda6055325d0e1eed37de (diff)
downloadvolse-hubzilla-7ee2192c29ea3da08fe2c6ba361388eb6e3a6877.tar.gz
volse-hubzilla-7ee2192c29ea3da08fe2c6ba361388eb6e3a6877.tar.bz2
volse-hubzilla-7ee2192c29ea3da08fe2c6ba361388eb6e3a6877.zip
provide some info and remove unused code
-rw-r--r--view/js/mod_cloud.js13
1 files 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 = $('<form></form>').attr('action', 'attach').attr('method', 'post');
- form.append($("<input></input>").attr('type', 'hidden').attr('name', 'attach_path').attr('value', window.location.pathname));
- form.append($("<input></input>").attr('type', 'hidden').attr('name', 'channel_id').attr('value', channelId));
- post_data.each(function () {
- form.append($("<input></input>").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) {