Merge pull request #101 from victorsl/BUG-9042

BUG 9042 "En la pantalla de procesos, no se realiza una buena..." SOLVED
This commit is contained in:
julceslauhub
2012-06-25 06:15:41 -07:00

View File

@@ -116,6 +116,7 @@ Ext.onReady(function(){
if( searchTxt == '' ){ if( searchTxt == '' ){
store.setBaseParam( 'processName', ''); store.setBaseParam( 'processName', '');
} }
store.load({params: {category: filter, start: 0, limit: 25}}); store.load({params: {category: filter, start: 0, limit: 25}});
}} }}
}) })
@@ -295,7 +296,7 @@ Ext.onReady(function(){
handler: function(){ handler: function(){
//store.setBaseParam( 'category', '<reset>'); //store.setBaseParam( 'category', '<reset>');
store.setBaseParam('processName', ''); store.setBaseParam('processName', '');
store.load({params:{start : 0 , limit : '' }}); store.load({params: {start: 0, limit: 25}});
Ext.getCmp('searchTxt').setValue(''); Ext.getCmp('searchTxt').setValue('');
//comboCategory.setValue(''); //comboCategory.setValue('');
//store.reload(); //store.reload();
@@ -307,7 +308,7 @@ Ext.onReady(function(){
], ],
// paging bar on the bottom // paging bar on the bottom
bbar: new Ext.PagingToolbar({ bbar: new Ext.PagingToolbar({
pageSize: 15, pageSize: 25,
store: store, store: store,
displayInfo: true, displayInfo: true,
displayMsg: 'Displaying Processes {0} - {1} of {2}', displayMsg: 'Displaying Processes {0} - {1} of {2}',
@@ -337,7 +338,7 @@ Ext.onReady(function(){
} }
}); });
processesGrid.store.load({params: {"function":"languagesList"}}); processesGrid.store.load({params: {"function": "languagesList", "start": 0, "limit": 25}});
processesGrid.addListener('rowcontextmenu', onMessageContextMenu,this); processesGrid.addListener('rowcontextmenu', onMessageContextMenu,this);
processesGrid.on('rowcontextmenu', function (grid, rowIndex, evt) { processesGrid.on('rowcontextmenu', function (grid, rowIndex, evt) {
var sm = grid.getSelectionModel(); var sm = grid.getSelectionModel();
@@ -522,8 +523,8 @@ function doSearch(){
if(comboCategory.getValue() == '') if(comboCategory.getValue() == '')
store.setBaseParam( 'category', '<reset>'); store.setBaseParam( 'category', '<reset>');
filter = Ext.getCmp('searchTxt').getValue(); filter = Ext.getCmp('searchTxt').getValue();
store.setBaseParam('processName', filter); store.setBaseParam('processName', filter);
store.load({params:{processName: filter, start: 0 , limit: 25}}); store.load({params:{processName: filter, start: 0 , limit: 25}});
} }