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

remove loggings

parent 62563247
No related branches found
No related tags found
No related merge requests found
import("system.logging");
import("system.vars");
import("system.db");
import("system.result");
......
import("system.logging");
import("system.result");
import("WsValidation_lib");
import("system.vars");
......
import("system.logging");
import("DocumentTemplate_lib");
import("system.neon");
import("system.vars");
......@@ -8,7 +7,6 @@ import("system.vars");
if(vars.get("$sys.viewmode") == neon.FRAME_VIEWMODE_DATASET)
{
[content, type] = DocumentTemplateUtils.getTemplateContent(vars.get("$field.DOCUMENTTEMPLATE_ID"), new FileUpload(vars.get("$local.value")));
logging.log(JSON.stringify(["valChange", type], null, "\t"))
vars.set("$field.DOCUMENTTEMPLATE_ID", "");
vars.set("$field.content", content);
vars.set("$context.currentTemplateType", type);
......
import("system.logging");
import("system.result");
import("system.vars");
import("system.neon");
import("DocumentTemplate_lib");
logging.log(JSON.stringify(["stateProcess"], null, "\t"))
// in edit mode
if (vars.get("$sys.recordstate") != neon.OPERATINGSTATE_VIEW &&
(vars.get("$context.currentTemplateType") == DocumentTemplate.types.EML
|| vars.get("$context.currentTemplateType") == DocumentTemplate.types.HTML)) // TODO: invisible for html as there are problems with images which are removed by the html-editor
{
logging.log(JSON.stringify(["state", vars.get("$context.currentTemplateType")], null, "\t"))
result.string(neon.COMPONENTSTATE_INVISIBLE);
}
......@@ -18,11 +15,9 @@ if (vars.get("$sys.recordstate") != neon.OPERATINGSTATE_VIEW &&
// For EML-files or other large files this is very bad, as the editor needs a very long time to initialize
else if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_VIEW)
{
logging.log(JSON.stringify(["state2", vars.get("$context.currentTemplateType")], null, "\t"))
result.string(neon.COMPONENTSTATE_INVISIBLE);
}
else
{
logging.log(JSON.stringify(["edit", vars.get("$context.currentTemplateType")], null, "\t"))
result.string(neon.COMPONENTSTATE_EDITABLE);
}
\ No newline at end of file
import("system.logging");
import("system.db");
import("system.vars");
import("system.result");
......
import("system.logging");
import("system.neon");
import("system.translate");
import("system.result");
......
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