Fix issues with the new support form

pull/1/head
yflory 5 years ago
parent f5c710e80a
commit e12d8c5b70

@ -91,6 +91,7 @@ define([
name: $el.attr('data-name') name: $el.attr('data-name')
}); });
}); });
$attachments.html('');
send(ctx, id, 'TICKET', { send(ctx, id, 'TICKET', {
category: category, category: category,
@ -207,7 +208,8 @@ Messages.support_addAttachment = "Add attachment"; // XXX
$(attachments).append(span); $(attachments).append(span);
}; };
ctx.FM.handleFile(file, ev); // The empty object allows us to bypass the file upload modal
ctx.FM.handleFile(file, ev, {});
}); });
}); });
$input.click(); $input.click();

Loading…
Cancel
Save