Commit d9026225 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

Model: Use the new getPrintableAnalysisName() in saveAnalysis()

Additionnaly we make sure that the name will not have any problem to be recorded (we remove problematic characters)
parent 202a0dc0
......@@ -796,8 +796,7 @@ Model.prototype = {
type: 'json'
var ext = this.dataFileName.lastIndexOf(".")
var filename = this.dataFileName.substr(0, ext)
var filename = this.getPrintableAnalysisName().replace(/[ \/\\:]/,'_')
saveAs(textFileAsBlob, filename + ".analysis");
}, //end saveAnalysis
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment