add export cluster link to body (needed for Firefox)

This commit is contained in:
Cora Johnson-Roberson 2017-02-10 12:18:07 -05:00
parent 2800b26a77
commit d12dc36e27

View File

@ -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() {