Mercurial > lada > lada-client
comparison app/controller/grid/Ortszuordnung.js @ 1304:9f15a932a525
Fixed ort filter close actions.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 02 Feb 2017 14:40:26 +0100 |
parents | e9f812528324 |
children | 3754111e365a |
comparison
equal
deleted
inserted
replaced
1303:996607be4752 | 1304:9f15a932a525 |
---|---|
200 | 200 |
201 /** | 201 /** |
202 * Search triggered by textfield key event. | 202 * Search triggered by textfield key event. |
203 */ | 203 */ |
204 search: function(field, evt, opts) { | 204 search: function(field, evt, opts) { |
205 if (evt.getKey() === 27) { | |
206 if (this.resultPanel.isVisible()) { | |
207 this.resultPanel.close(); | |
208 return; | |
209 } | |
210 else { | |
211 field.up('window').close(); | |
212 return; | |
213 } | |
214 } | |
205 this.searchField = field; | 215 this.searchField = field; |
206 if ((evt.getKey() == 13 || evt.getKey() == 8) && field.getValue() && field.getValue().length > 0) { | 216 if ((evt.getKey() == 13 || evt.getKey() == 8) && field.getValue() && field.getValue().length > 0) { |
207 this.execSearch(field, field.getValue()); | 217 this.execSearch(field, field.getValue()); |
208 } | 218 } |
209 if (field.getValue().length === 0) { | 219 if (field.getValue().length === 0) { |