Commit 804b55998883215642820c91d753d4558b4c81b9

Authored by Elena.Budnik
1 parent d419cd2c

catalog name

Showing 2 changed files with 5 additions and 5 deletions   Show diff stats
js/app/models/Stats.js
... ... @@ -22,8 +22,8 @@ Ext.define('amdaModel.Stats', {
22 22 values.id = this.get('id');
23 23 }
24 24  
25   - values.timesrc = this.get('timesrc');
26   - values.name = 'test'; //this.get('name');
  25 + values.timesrc = this.get('timesrc');
  26 + values.name = this.get('name');
27 27  
28 28 // if (this.get('description').match(/[a-z,0-9]/gi) != null) {
29 29 // values.description = this.get('description');
... ...
js/app/views/StatisticsUI.js
... ... @@ -119,7 +119,7 @@ Ext.define('amdaUI.StatisticsUI',
119 119 var updateStatus = true;
120 120  
121 121 var formValues = basicForm.getValues();
122   - //this.object.set('name',formValues.name);
  122 + this.object.set('name',this.fieldName.getValue());
123 123 this.object.set('description',formValues.description);
124 124  
125 125 var recs = this.paramGrid.getStore().getNewRecords();
... ... @@ -399,8 +399,8 @@ Ext.define('amdaUI.StatisticsUI',
399 399 {
400 400 // update object with user's values
401 401 // if the return is true (object had been updated)
402   - if(this.updateObject()){
403   - this.updateObject();
  402 + if (this.updateObject()){
  403 + // this.updateObject();
404 404 this.generateCatalog();
405 405 }
406 406 }
... ...