From fcf54ac9ca8627241ef392ac7fccc9c2228a98e7 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Fri, 6 May 2016 22:22:41 -0400 Subject: [PATCH] Several attachment changes - Use an "Add File" button at the bottom of the dropzone instead of clicking directly on the dropzone - Adjust layout to hopefully fix issue with long file names (haven't tested yet) - Show percentage in percentage bar - Fix issue where percentage bar would still animate even after upload finished --- css/mods-for-hesk.css | 6 +++++ inc/view_attachment_functions.inc.php | 36 +++++++++++++++++---------- index.php | 2 +- language/en/text.php | 3 ++- 4 files changed, 32 insertions(+), 15 deletions(-) diff --git a/css/mods-for-hesk.css b/css/mods-for-hesk.css index d67bbd49..37725234 100644 --- a/css/mods-for-hesk.css +++ b/css/mods-for-hesk.css @@ -331,4 +331,10 @@ div.setupButtons { .rate { margin: 0; +} + +.fileinput-button { + width: 100%; + border-top-left-radius: 0; + border-top-right-radius: 0; } \ No newline at end of file diff --git a/inc/view_attachment_functions.inc.php b/inc/view_attachment_functions.inc.php index df3e80ee..6bdc230b 100644 --- a/inc/view_attachment_functions.inc.php +++ b/inc/view_attachment_functions.inc.php @@ -176,18 +176,22 @@ function output_dropzone_window() {