Commit a2deee842f1d07d090c09f7e5d2185d42bed3912

Authored by Laurent BEIGBEDER
1 parent e901deb4
Exists in master

Evol #6610 : file extension removed as in browse mode

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
ihm/app/controller/Drop/FileDrop.js
... ... @@ -70,7 +70,8 @@ Ext.define('treps.controller.Drop.FileDrop', {
70 70 return false;
71 71 }
72 72  
73   - treps.model.Session.set('in_filenameBase',file.name);
  73 + var filenameBase = file.name.substring(0,file.name.lastIndexOf('.'));
  74 + treps.model.Session.set('in_filenameBase',filenameBase);
74 75  
75 76 var reader = new FileReader();
76 77 reader.onload = function (event) {
... ...