Commit 880ea119a4038c7637bc308eae50a58d95329373

Authored by Elena.Budnik
1 parent 94a05aa2

check object

Showing 1 changed file with 7 additions and 2 deletions   Show diff stats
js/app/views/StatisticsUI.js
... ... @@ -66,6 +66,11 @@ Ext.define('amdaUI.StatisticsUI', {
66 66 var obj = new Object();
67 67 obj.param = rec.get('name');
68 68 obj.function = rec.get('function');
  69 + if (obj.function == null) {
  70 + myDesktopApp.warningMsg('Please select function : `click to select`');
  71 + updateStatus = false;
  72 + return;
  73 + }
69 74 paramArr.push(obj);
70 75 });
71 76  
... ... @@ -300,10 +305,10 @@ Ext.define('amdaUI.StatisticsUI', {
300 305 handler: function(){
301 306 // update object with user's values
302 307 // if the return is true (object had been updated)
303   - // if(this.updateObject()){
  308 + if(this.updateObject()){
304 309 this.updateObject();
305 310 this.generateCatalog();
306   - // }
  311 + }
307 312 }
308 313 },
309 314 {
... ...