Commit 8f84270486bbba02e067b7c91c21055f39ab4d00

Authored by Laurent BEIGBEDER
1 parent b374e09f
Exists in master

11530: add input position unit choice

Showing 1 changed file with 14 additions and 1 deletions   Show diff stats
ihm/app/controller/Steps/TransformationDefinitionStep.js
... ... @@ -233,6 +233,9 @@ Ext.define('treps.controller.Steps.TransformationDefinitionStep', {
233 233 infoMsg.push("No vector defined. The full source data will be used during the next step.");
234 234 }
235 235  
  236 + //get unit scale in km
  237 + vecDefController.getScale();
  238 +
236 239  
237 240 var args = {
238 241 'id' : treps.model.Session.get('id'),
... ... @@ -292,7 +295,17 @@ Ext.define('treps.controller.Steps.TransformationDefinitionStep', {
292 295 //reset vectors
293 296 vecDefController.clearStore();
294 297 vecDefController.initRenderer();
295   -
  298 +
  299 + //load units list
  300 + treps.LoadMask.show("Load units list. Please wait ...");
  301 + vecDefController.initStore(function (unitsStore)
  302 + {
  303 + treps.LoadMask.hide();
  304 + //not working
  305 + //vecDefController.getUnitsCombo().selectedIndex = 3;
  306 + vecDefController.selectDefaultUnit();//working
  307 + });
  308 +
296 309 //Load frames list
297 310 treps.LoadMask.show("Load frames list. Please wait ...");
298 311 framesDefController.initStore(function (framesStore)
... ...