From d12dc36e2724cc383879dea6f44f75ccc016117b Mon Sep 17 00:00:00 2001 From: Cora Johnson-Roberson Date: Fri, 10 Feb 2017 12:18:07 -0500 Subject: [PATCH] add export cluster link to body (needed for Firefox) --- main/webapp/modules/core/scripts/dialogs/clustering-dialog.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/webapp/modules/core/scripts/dialogs/clustering-dialog.js b/main/webapp/modules/core/scripts/dialogs/clustering-dialog.js index 0eacd4254..2376f0751 100644 --- a/main/webapp/modules/core/scripts/dialogs/clustering-dialog.js +++ b/main/webapp/modules/core/scripts/dialogs/clustering-dialog.js @@ -397,7 +397,9 @@ ClusteringDialog.prototype._export = function() { var link = document.createElement('a'); link.href = 'data:' + data; link.download = "clusters_" + projectName + "_" + columnName + "_" + timeStamp + ".json"; + document.body.appendChild(link); link.click(); + document.body.removeChild(link); }; ClusteringDialog.prototype._dismiss = function() {