Changeset 560 for trunk/web2/addons/job_monarch/js/jobgrid.js
- Timestamp:
- 01/21/09 23:32:40 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web2/addons/job_monarch/js/jobgrid.js
r559 r560 44 44 45 45 onPageSizeChanged: function(combo) { 46 this.pageSize = parseInt(combo.getValue());47 46 mylimit = parseInt(combo.getValue()); 47 this.pageSize = mylimit; 48 48 this.doLoad(0); 49 49 } … … 153 153 // Can't be sure if there are enough pages for new filter: reset to page 1 154 154 // 155 //myparams = joinMyArray( myparams, { start: 0, limit: 30 } );156 //mylimit = JobListingEditorGrid.bbar.pageSize;157 155 myparams = joinMyArray( myparams, { start: 0, limit: mylimit } ); 158 156 … … 274 272 275 273 Ext.QuickTips.init(); 276 Ext.form.Field.prototype.msgTarget = 'side';277 274 278 275 function jobCellClick(grid, rowIndex, columnIndex, e) … … 363 360 remoteSort: true 364 361 }); 365 362 363 var CheckJobs = new Ext.grid.CheckboxSelectionModel(); 364 366 365 JobsColumnModel = new Ext.grid.ColumnModel( 367 [{ 366 [ CheckJobs, 367 { 368 368 header: '#', 369 369 tooltip: 'Job id', … … 462 462 ); 463 463 JobsColumnModel.defaultSortable= true; 464 465 var win; 464 466 465 467 JobListingEditorGrid = new Ext.grid.EditorGridPanel({ … … 472 474 selModel: new Ext.grid.RowSelectionModel({singleSelect:false}), 473 475 stripeRows: true, 476 sm: CheckJobs, 474 477 bbar: new Ext.PagingToolbar({ 475 478 pageSize: 15, … … 484 487 params: {start: 0, limit: mylimit}, 485 488 width: 200 486 }) 489 }), 490 new Ext.Button({ 491 text: 'Show nodes', 492 tooltip: 'Show nodes for selected jobs', 493 iconCls: 'option', 494 listeners: { 495 'click': { 496 scope: this, 497 fn: function() { 498 if(!win){ 499 win = new Ext.Window({ 500 width : 500, 501 height : 300, 502 closeAction :'hide', 503 }); 504 } 505 win.show( this ); 506 } 507 } 508 } 509 }) 487 510 ] 488 511 });
Note: See TracChangeset
for help on using the changeset viewer.