Commit a7826f5b92061bd059b9f2c83fbfc83de08711d1
1 parent
edbd2891
Exists in
master
redmine 6610: sauvegarde du nom du fichier input
Suppression des charactères générés en début de nom.
Showing
1 changed file
with
5 additions
and
2 deletions
Show diff stats
ihm/app/controller/Steps/SourceSelectionStep.js
... | ... | @@ -211,9 +211,12 @@ Ext.define('treps.controller.Steps.SourceSelectionStep', { |
211 | 211 | waitMsg: 'Uploading your file...', |
212 | 212 | timeout: 120000, |
213 | 213 | success: function(form, action) { |
214 | - var filenameBase = action.result.fileName.substring(0, | |
214 | + //save input file name, removing first random generated chars | |
215 | + //redmine 6610 | |
216 | + var filenameBase = action.result.fileName.substring( | |
217 | + action.result.fileName.indexOf("_",11)+1, | |
215 | 218 | action.result.fileName.lastIndexOf('.')); |
216 | - console.log('localfile_panel filename: '+filenameBase); | |
219 | + //console.log('localfile_panel filename2: '+filenameBase); | |
217 | 220 | treps.model.Session.set('in_filenameBase',filenameBase); |
218 | 221 | me.callRequest('local',action.result.fileName,afterrequest); |
219 | 222 | }, | ... | ... |