Skip to content
Snippets Groups Projects
Commit 87a3a314 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

Bulkmail: work around initialisation of editor directly after save which is bad for a long eml file

parent 60aa89dd
No related branches found
No related tags found
No related merge requests found
......@@ -9,5 +9,9 @@ if (vars.get("$sys.recordstate") != neon.OPERATINGSTATE_VIEW &&
{
result.string(neon.COMPONENTSTATE_INVISIBLE);
}
// keep in invisible mode to prevent a visible editor directly after save which needs much time to initiate (for eml)
// somehow the edit view is in view mode and the editor doesn't know anything about it and initializes itself...
else if (vars.get("$context.currentTemplateType") == DocumentTemplate.types.EML || vars.get("$context.currentTemplateType") == DocumentTemplate.types.HTML)
result.string(neon.COMPONENTSTATE_INVISIBLE);
else
result.string(neon.COMPONENTSTATE_EDITABLE);
\ No newline at end of file
......@@ -4,10 +4,10 @@ import("Document_lib");
import("DocumentTemplate_lib");
import("system.neon");
import("system.vars");
/*
if (vars.get("$this.value") == null && vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
{
var upload = new FileUpload(vars.get("$field.bindata"));
if (upload.isFilled() && DocumentTemplate.types.fromMimeType(upload.mimeType) == DocumentTemplate.types.EML)
result.string(Email.fromRFC(upload.bindata).subject);
}
\ No newline at end of file
}*/
\ No newline at end of file
......@@ -3,7 +3,7 @@ import("system.vars");
import("system.result");
import("DocumentTemplate_lib");
var template = new DocumentTemplate(vars.get("$field.SUBJECT"), DocumentTemplate.types.PLAIN);
var subject = template.getReplacedContentByContactId(EmployeeUtils.getCurrentContactId());
//var template = new DocumentTemplate(vars.get("$field.SUBJECT"), DocumentTemplate.types.PLAIN);
//var subject = template.getReplacedContentByContactId(EmployeeUtils.getCurrentContactId());
result.string(subject);
\ No newline at end of file
result.string("test");
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment