diff --git a/js/app/views/DownloadUI.js b/js/app/views/DownloadUI.js index 0948a1d..c803c29 100644 --- a/js/app/views/DownloadUI.js +++ b/js/app/views/DownloadUI.js @@ -105,7 +105,7 @@ Ext.define('amdaUI.DownloadUI', { } var r = Ext.create('amdaModel.DownloadParam', {paramid: paramId, type: type, dim1: dim1, dim2: dim2, template_args: {} }); - var pos = paramId.indexOf('ws_',0) == -1 ? 0 :this.paramGrid.store.getCount(); + var pos = this.paramGrid.store.getCount(); this.paramGrid.store.insert(pos,r); this.paramGrid.getView().refresh(); if (!isLeaf || needArgs) @@ -276,11 +276,12 @@ Ext.define('amdaUI.DownloadUI', { actionItem: function(grid, cell, cellIndex, record, row, recordIndex, e){ - this.paramGrid.getView().select(row); if (cellIndex == 3) grid.getStore().remove(record); - else if (cellIndex == 2) + else if (cellIndex == 2) { + this.paramGrid.getView().select(row); this.editParameterArgs(record); + } }, editParameterArgs: function(record) { -- libgit2 0.21.2