diff --git a/admin/admin_ticket.php b/admin/admin_ticket.php
index aa77f1b5..0a480cdc 100644
--- a/admin/admin_ticket.php
+++ b/admin/admin_ticket.php
@@ -1298,18 +1298,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
@@ -1869,19 +1858,7 @@ function hesk_printReplyForm()
-
-
-
-
';
- }
- }
- ?>
-
-
-
-
-
+
diff --git a/inc/view_attachment_functions.inc.php b/inc/view_attachment_functions.inc.php
index c8f4eed3..28e061ae 100644
--- a/inc/view_attachment_functions.inc.php
+++ b/inc/view_attachment_functions.inc.php
@@ -208,6 +208,23 @@ function output_attachment_id_holder_container($id) {
echo '';
}
+function build_dropzone_markup($id = 'filedrop') {
+ global $hesklang, $hesk_settings;
+
+ echo '
+
+ ';
+ for ($i = 1; $i <= $hesk_settings['attachments']['max_number']; $i++) {
+ $cls = ($i == 1 && in_array('attachments', $_SESSION['iserror'])) ? ' class="isError" ' : '';
+ echo '
';
+ }
+ echo '
+
+
+ '. $hesklang['ful'] . '';
+}
+
function display_dropzone_field($url, $id = 'filedrop') {
global $hesk_settings, $hesklang;
diff --git a/index.php b/index.php
index 535325b1..9ed243b7 100644
--- a/index.php
+++ b/index.php
@@ -979,20 +979,7 @@ function print_add_ticket()
: