Commit 33b0f682d600594b5c0546a3c09a1dcf0663ec36
1 parent
df3f995c
Exists in
master
and in
112 other branches
Suspend service queries on servicegrid click
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
js/app/controllers/EpnTapModule.js
... | ... | @@ -190,14 +190,18 @@ Ext.define('amdaDesktop.EpnTapModule', { |
190 | 190 | send a new query and fill `granulesGrid`. |
191 | 191 | */ |
192 | 192 | onServiceSelected: function(record) { |
193 | - // Ext.Ajax.abortAll(); | |
193 | + Ext.Ajax.suspendEvent('requestexception'); | |
194 | + Ext.Ajax.abortAll(); | |
194 | 195 | this.selectedService = record; |
195 | 196 | var nbRes = this.selectedService.get('nb_results'); |
196 | 197 | |
197 | 198 | if(nbRes > 0 && !isNaN(nbRes)) { // TODO replace !isNaN(nbRes) by this.selectedService.get('success') |
198 | 199 | this.granulesStore.load({ |
199 | 200 | params: this.getGranuleParams(), |
200 | - // callback: function (records, operation, success) { console.log(Ext.decode(operation.response.responseText)); }, | |
201 | + callback: function (records, operation, success) { | |
202 | + Ext.Ajax.resumeEvents('requestexception'); | |
203 | + // console.log(Ext.decode(operation.response.responseText)); | |
204 | + }, | |
201 | 205 | start: 0, |
202 | 206 | limit: this.granulesStore.pageSize, |
203 | 207 | scope: this |
... | ... |