Changeset 563 for trunk/web2/addons/job_monarch/js/jobgrid.js
- Timestamp:
- 01/22/09 16:33:31 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web2/addons/job_monarch/js/jobgrid.js
r562 r563 336 336 method: 'POST' 337 337 }); 338 339 var SearchField; 338 340 339 341 JobsDataStore = new Ext.data.Store({ … … 361 363 ]), 362 364 sortInfo: { field: 'jid', direction: "DESC" }, 363 remoteSort: true 365 remoteSort: true, 366 listeners: { 'load': { 367 scope: this, 368 fn: function() { 369 if( SearchField ) { 370 search_value = SearchField.getEl().dom.value; 371 372 if( search_value != '' ) 373 { 374 myfilters['query'] = search_value; 375 } 376 377 reloadClusterImage(); 378 379 if( search_value != '' ) 380 { 381 delete myfilters['query']; 382 } 383 } 384 } 385 } 386 } 364 387 }); 365 388 … … 467 490 468 491 var win; 492 493 SearchField = new Ext.app.SearchField({ 494 store: JobsDataStore, 495 params: {start: 0, limit: mylimit}, 496 width: 200 497 }); 469 498 470 499 JobListingEditorGrid = new Ext.grid.EditorGridPanel({ … … 486 515 plugins: [new Ext.ux.PageSizePlugin()] 487 516 }), 488 tbar: [ new Ext.app.SearchField({ 489 store: JobsDataStore, 490 params: {start: 0, limit: mylimit}, 491 width: 200 492 }), 517 tbar: [ SearchField, 493 518 new Ext.Button({ 494 519 text: 'Show nodes', … … 511 536 } 512 537 } 513 }) 514 ] 538 }) ] 515 539 }); 516 540
Note: See TracChangeset
for help on using the changeset viewer.