Поправленны ошибки при поиске. Добавлен сброк предыдущих параметров

1 parent 81e38050
...@@ -82,7 +82,11 @@ Ext.define('MyMA.controller.Aliases', { ...@@ -82,7 +82,11 @@ Ext.define('MyMA.controller.Aliases', {
* Search action * Search action
*/ */
onSearch: function(Button) { onSearch: function(Button) {
this.getAliasesList().getStore().reload({ params: Button.up('toolbar').getValues() }); var store = this.getAliasesList().getStore();
store.getProxy().extraParams = Ext.apply({}, Button.up('toolbar').getValues());
store.reload({
params: { }
});
}, },
......
...@@ -80,7 +80,9 @@ Ext.define('MyMA.controller.Transports', { ...@@ -80,7 +80,9 @@ Ext.define('MyMA.controller.Transports', {
onSearch: function(Button) { onSearch: function(Button) {
var store = this.getTransportsList().getStore(); var store = this.getTransportsList().getStore();
store.getProxy().extraParams = Ext.apply({}, Button.up('toolbar').getValues()); store.getProxy().extraParams = Ext.apply({}, Button.up('toolbar').getValues());
store.reload(); store.reload({
params: { }
});
}, },
......
...@@ -89,7 +89,9 @@ Ext.define('MyMA.controller.Users', { ...@@ -89,7 +89,9 @@ Ext.define('MyMA.controller.Users', {
onSearch: function(Button) { onSearch: function(Button) {
var store = this.getUsersList().getStore(); var store = this.getUsersList().getStore();
store.getProxy().extraParams = Ext.apply({}, Button.up('toolbar').getValues()); store.getProxy().extraParams = Ext.apply({}, Button.up('toolbar').getValues());
store.reload(); store.reload({
params: { }
});
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!