forked from extern/django-helpdesk
parent
e016e6699d
commit
44abb19712
@ -145,6 +145,7 @@ def process_attachments(followup, attached_files):
|
||||
'application/octet-stream',
|
||||
size=attached.size,
|
||||
)
|
||||
att.full_clean()
|
||||
att.save()
|
||||
|
||||
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
|
||||
|
||||
|
||||
@task()
|
||||
@shared_task
|
||||
def helpdesk_process_email():
|
||||
process_email()
|
||||
|
@ -330,7 +330,11 @@
|
||||
function get_url(row) {
|
||||
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 () {
|
||||
// Ticket DataTable Initialization
|
||||
$('#ticketTable').DataTable({
|
||||
@ -366,7 +370,7 @@
|
||||
if (type === 'display') {
|
||||
data = '<div class="tickettitle"><a href="' + get_url(row) + '" >' +
|
||||
row.id + '. ' +
|
||||
row.title + '</a></div>';
|
||||
htmlEntities(row.title) + '</a></div>';
|
||||
}
|
||||
return data
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user