Commit 880ea119a4038c7637bc308eae50a58d95329373
1 parent
94a05aa2
Exists in
master
and in
112 other branches
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,6 +66,11 @@ Ext.define('amdaUI.StatisticsUI', { | ||
66 | var obj = new Object(); | 66 | var obj = new Object(); |
67 | obj.param = rec.get('name'); | 67 | obj.param = rec.get('name'); |
68 | obj.function = rec.get('function'); | 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 | paramArr.push(obj); | 74 | paramArr.push(obj); |
70 | }); | 75 | }); |
71 | 76 | ||
@@ -300,10 +305,10 @@ Ext.define('amdaUI.StatisticsUI', { | @@ -300,10 +305,10 @@ Ext.define('amdaUI.StatisticsUI', { | ||
300 | handler: function(){ | 305 | handler: function(){ |
301 | // update object with user's values | 306 | // update object with user's values |
302 | // if the return is true (object had been updated) | 307 | // if the return is true (object had been updated) |
303 | - // if(this.updateObject()){ | 308 | + if(this.updateObject()){ |
304 | this.updateObject(); | 309 | this.updateObject(); |
305 | this.generateCatalog(); | 310 | this.generateCatalog(); |
306 | - // } | 311 | + } |
307 | } | 312 | } |
308 | }, | 313 | }, |
309 | { | 314 | { |