From c0a17574761e17ec1772e9cfc7ecf84b71dd336e Mon Sep 17 00:00:00 2001 From: "j.goderbauer" <j.goderbauer@adito.de> Date: Wed, 14 Oct 2020 14:43:22 +0200 Subject: [PATCH] =?UTF-8?q?[Projekt:=20Entwicklung=20-=20Neon][TicketNr.:?= =?UTF-8?q?=201067247][[Export]=20Ansicht=20bleibt=20ge=C3=B6ffnet,=20Expo?= =?UTF-8?q?rt=20kann=20beliebig=20oft=20ausgef=C3=BChrt=20werden]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entityfields/safeandexport/onActionProcess.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/entity/ExportTemplateSelection_entity/entityfields/safeandexport/onActionProcess.js b/entity/ExportTemplateSelection_entity/entityfields/safeandexport/onActionProcess.js index 0eecb635d1..66ee054757 100644 --- a/entity/ExportTemplateSelection_entity/entityfields/safeandexport/onActionProcess.js +++ b/entity/ExportTemplateSelection_entity/entityfields/safeandexport/onActionProcess.js @@ -9,6 +9,8 @@ var comingFrom = vars.get("$field.comingfrom"); if(templateId) { -var document = ExportTemplateUtils.buildExport(templateId, selection, comingFrom, filename); -neon.download(document.content, document.filename); + var document = ExportTemplateUtils.buildExport(templateId, selection, comingFrom, filename); + neon.download(document.content, document.filename); + //since we do not open something after the download we need to close the window where the action is placed + neon.closeImage(vars.get("$sys.currentimage"), true); } \ No newline at end of file -- GitLab