aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-12-16 16:57:56 +0000
committerMario <mario@mariovavti.com>2020-12-16 16:57:56 +0000
commitb4b566318a0e52b6396445ddc21c20c0abcc8ce4 (patch)
treee65c0225d0c85a72db1e709e3a32484584b049c0 /view/js
parent27df896a9cb1f713c49e290f2a4e7d9860aff1d5 (diff)
downloadvolse-hubzilla-b4b566318a0e52b6396445ddc21c20c0abcc8ce4.tar.gz
volse-hubzilla-b4b566318a0e52b6396445ddc21c20c0abcc8ce4.tar.bz2
volse-hubzilla-b4b566318a0e52b6396445ddc21c20c0abcc8ce4.zip
files_ng: fix regression in finding the right path in certain situations and add a info panel with attach and zrl bbcode
Diffstat (limited to 'view/js')
-rw-r--r--view/js/mod_cloud.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/view/js/mod_cloud.js b/view/js/mod_cloud.js
index 7f2bdfab7..cbd9c2a08 100644
--- a/view/js/mod_cloud.js
+++ b/view/js/mod_cloud.js
@@ -14,6 +14,14 @@ $(document).ready(function () {
// Per File Tools
+ $('.cloud-tool-info-btn').on('click', function (e) {
+ e.preventDefault();
+ let id = $(this).data('id');
+ close_and_deactivate_all_panels();
+ $('#cloud-tool-info-' + id).toggle();
+ $('#cloud-index-' + id).addClass('cloud-index-active');
+ });
+
$('.cloud-tool-perms-btn').on('click', function (e) {
e.preventDefault();
let id = $(this).data('id');
@@ -323,7 +331,6 @@ $(document).ready(function () {
$('#cloud-tool-submit-' + id).show();
$('#cloud-index-' + id).addClass('cloud-index-active');
- $('#cloud-tool-submit-' + id).show();
}
});
@@ -406,7 +413,7 @@ function prepareHtml(f) {
$('#cloud-index #new-upload-progress-bar-' + num.toString()).after(
'<tr id="new-upload-' + i + '" class="new-upload">' +
'<td></td>' +
- '<td><i class="fa ' + getIconFromType(f.type) + '" title="' + f.type + '"></i></td>' +
+ '<td><i class="fa fa-fw ' + getIconFromType(f.type) + '" title="' + f.type + '"></i></td>' +
'<td>' + f.name + '</td>' +
'<td id="upload-progress-' + i + '"></td><td></td><td></td>' +
'<td class="d-none d-md-table-cell">' + formatSizeUnits(f.size) + '</td><td class="d-none d-md-table-cell"></td>' +