diff --git a/js/app/controllers/DownloadModule.js b/js/app/controllers/DownloadModule.js index 2bd8354..c7e2c0d 100644 --- a/js/app/controllers/DownloadModule.js +++ b/js/app/controllers/DownloadModule.js @@ -39,6 +39,10 @@ Ext.define('amdaDesktop.DownloadModule', { var form = uiContent.down('form').getForm(); var values = form.getValues(); // Ext.state.Manager.set(this.id + '_form', values); + if (Number.isNaN(Date.parse(values.startDate)) || Number.isNaN(Date.parse(values.stopDate))) { + return; + } + Ext.state.Manager.set('timeinterval', {'startDate' : values.startDate,'stopDate' : values.stopDate }); }, -- libgit2 0.21.2