From f56dc3e0124ab3b56e2f29b9b38c12c4003e54a1 Mon Sep 17 00:00:00 2001 From: kushthedude Date: Sun, 23 Feb 2020 18:34:20 +0530 Subject: [PATCH] fix: cannot export a file if blank tab opened is not closed Signed-off-by: kushthedude --- .../core/scripts/dialogs/custom-tabular-exporter-dialog.js | 2 +- .../modules/core/scripts/dialogs/sql-exporter-dialog.js | 2 +- .../core/scripts/dialogs/templating-exporter-dialog.js | 2 +- main/webapp/modules/core/scripts/project/exporters.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/main/webapp/modules/core/scripts/dialogs/custom-tabular-exporter-dialog.js b/main/webapp/modules/core/scripts/dialogs/custom-tabular-exporter-dialog.js index 6620e39c2..1dd5e0842 100644 --- a/main/webapp/modules/core/scripts/dialogs/custom-tabular-exporter-dialog.js +++ b/main/webapp/modules/core/scripts/dialogs/custom-tabular-exporter-dialog.js @@ -320,7 +320,7 @@ CustomTabularExporterDialog.prototype._postExport = function(preview) { document.body.appendChild(form); - window.open("about:blank", "refine-export"); + window.open(" ", "refine-export"); form.submit(); document.body.removeChild(form); diff --git a/main/webapp/modules/core/scripts/dialogs/sql-exporter-dialog.js b/main/webapp/modules/core/scripts/dialogs/sql-exporter-dialog.js index cf10d1112..c8e7399ab 100755 --- a/main/webapp/modules/core/scripts/dialogs/sql-exporter-dialog.js +++ b/main/webapp/modules/core/scripts/dialogs/sql-exporter-dialog.js @@ -368,7 +368,7 @@ function SqlExporterDialog(options) { // alert("form::" + form); document.body.appendChild(form); - window.open("about:blank", "refine-export"); + window.open(" ", "refine-export"); form.submit(); document.body.removeChild(form); diff --git a/main/webapp/modules/core/scripts/dialogs/templating-exporter-dialog.js b/main/webapp/modules/core/scripts/dialogs/templating-exporter-dialog.js index acd027837..88dbd5d44 100644 --- a/main/webapp/modules/core/scripts/dialogs/templating-exporter-dialog.js +++ b/main/webapp/modules/core/scripts/dialogs/templating-exporter-dialog.js @@ -169,7 +169,7 @@ TemplatingExporterDialog.prototype._export = function() { document.body.appendChild(form); - window.open("about:blank", "refine-export"); + window.open(" ", "refine-export"); form.submit(); document.body.removeChild(form); diff --git a/main/webapp/modules/core/scripts/project/exporters.js b/main/webapp/modules/core/scripts/project/exporters.js index 5823f7a5f..0b0038578 100644 --- a/main/webapp/modules/core/scripts/project/exporters.js +++ b/main/webapp/modules/core/scripts/project/exporters.js @@ -126,7 +126,7 @@ ExporterManager.handlers.exportRows = function(format, ext) { document.body.appendChild(form); - window.open("about:blank", "refine-export"); + window.open(" ", "refine-export"); form.submit(); document.body.removeChild(form); @@ -235,7 +235,7 @@ ExporterManager.handlers.exportProject = function() { document.body.appendChild(form); - window.open("about:blank", "refine-export"); + window.open(" ", "refine-export"); form.submit(); document.body.removeChild(form);