#407 Fix file limits
This commit is contained in:
parent
ed0d107712
commit
a9a820219e
@ -1299,7 +1299,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<?php build_dropzone_markup('notesFiledrop'); ?>
|
||||
<?php build_dropzone_markup(true, 'notesFiledrop'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1860,7 +1860,7 @@ function hesk_printReplyForm()
|
||||
<label for="attachments" class="col-sm-3 control-label"><?php echo $hesklang['attachments']; ?>:</label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<?php build_dropzone_markup(); ?>
|
||||
<?php build_dropzone_markup(true); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
@ -442,7 +442,7 @@ if (!isset($_SESSION['hide']['new_article']))
|
||||
<?php if ($hesk_settings['attachments']['use']): ?>
|
||||
<div class="form-group">
|
||||
<label for="attachments" class="control-label"><?php echo $hesklang['attachments']; ?> (<a href="Javascript:void(0)" onclick="Javascript:hesk_window('../file_limits.php',250,500);return false;"><?php echo $hesklang['ful']; ?></a>)</label>
|
||||
<?php build_dropzone_markup(); ?>
|
||||
<?php build_dropzone_markup(true); ?>
|
||||
</div>
|
||||
<?php
|
||||
display_dropzone_field($hesk_settings['hesk_url'] . '/internal-api/admin/knowledgebase/upload-attachment.php');
|
||||
@ -1496,7 +1496,7 @@ function edit_article()
|
||||
?>
|
||||
|
||||
<?php
|
||||
build_dropzone_markup();
|
||||
build_dropzone_markup(true);
|
||||
display_dropzone_field($hesk_settings['hesk_url'] . '/internal-api/admin/knowledgebase/upload-attachment.php');
|
||||
?>
|
||||
</div>
|
||||
|
@ -1042,7 +1042,7 @@ if ($hesk_settings['attachments']['use']) {
|
||||
<label for="attachments" class="control-label col-sm-3"><?php echo $hesklang['attachments']; ?>:</label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<?php build_dropzone_markup(); ?>
|
||||
<?php build_dropzone_markup(true); ?>
|
||||
</div>
|
||||
</div>
|
||||
<hr/>
|
||||
|
@ -208,9 +208,10 @@ function output_attachment_id_holder_container($id) {
|
||||
echo '<div id="attachment-holder-' . $id . '" class="hide"></div>';
|
||||
}
|
||||
|
||||
function build_dropzone_markup($id = 'filedrop') {
|
||||
function build_dropzone_markup($admin = false, $id = 'filedrop') {
|
||||
global $hesklang, $hesk_settings;
|
||||
|
||||
$directory_separator = $admin ? '../' : '';
|
||||
echo '<div class="dropzone" id="' . $id . '">
|
||||
<div class="fallback">
|
||||
<input type="hidden" name="use-legacy-attachments" value="1">';
|
||||
@ -221,8 +222,8 @@ function build_dropzone_markup($id = 'filedrop') {
|
||||
echo '</div>
|
||||
</div>
|
||||
<div class="btn btn-default btn-xs fileinput-button filedropbutton-' . $id . '">' . $hesklang['add_files'] . '</div><br>
|
||||
<a href="file_limits.php" target="_blank"
|
||||
onclick="Javascript:hesk_window(\'file_limits.php\',250,500);return false;">'. $hesklang['ful'] . '</a>';
|
||||
<a href="' . $directory_separator . 'file_limits.php" target="_blank"
|
||||
onclick="Javascript:hesk_window(\'' . $directory_separator . 'file_limits.php\',250,500);return false;">'. $hesklang['ful'] . '</a>';
|
||||
}
|
||||
|
||||
function display_dropzone_field($url, $id = 'filedrop') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user