mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-27 09:08:53 +01:00
parent
e016e6699d
commit
44abb19712
@ -145,6 +145,7 @@ def process_attachments(followup, attached_files):
|
|||||||
'application/octet-stream',
|
'application/octet-stream',
|
||||||
size=attached.size,
|
size=attached.size,
|
||||||
)
|
)
|
||||||
|
att.full_clean()
|
||||||
att.save()
|
att.save()
|
||||||
|
|
||||||
if attached.size < max_email_attachment_size:
|
if attached.size < max_email_attachment_size:
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
from celery.decorators import task
|
from celery import shared_task
|
||||||
|
|
||||||
from .email import process_email
|
from .email import process_email
|
||||||
|
|
||||||
|
|
||||||
@task()
|
@shared_task
|
||||||
def helpdesk_process_email():
|
def helpdesk_process_email():
|
||||||
process_email()
|
process_email()
|
||||||
|
@ -331,6 +331,10 @@
|
|||||||
return "{% url 'helpdesk:view' 1234 %}".replace(/1234/, row.id.toString());
|
return "{% url 'helpdesk:view' 1234 %}".replace(/1234/, row.id.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function htmlEntities(str) {
|
||||||
|
return String(str).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
||||||
|
}
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
// Ticket DataTable Initialization
|
// Ticket DataTable Initialization
|
||||||
$('#ticketTable').DataTable({
|
$('#ticketTable').DataTable({
|
||||||
@ -366,7 +370,7 @@
|
|||||||
if (type === 'display') {
|
if (type === 'display') {
|
||||||
data = '<div class="tickettitle"><a href="' + get_url(row) + '" >' +
|
data = '<div class="tickettitle"><a href="' + get_url(row) + '" >' +
|
||||||
row.id + '. ' +
|
row.id + '. ' +
|
||||||
row.title + '</a></div>';
|
htmlEntities(row.title) + '</a></div>';
|
||||||
}
|
}
|
||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user