Ignore:
Timestamp:
01/22/09 16:33:31 (15 years ago)
Author:
ramonb
Message:

web2/addons/job_monarch/image.php:

  • added query search option for node filtering

web2/addons/job_monarch/jobstore.php:

  • also search nodes and jobid with query

web2/addons/job_monarch/js/jobgrid.js:

  • added load event to datastore to trigger clusterimage reload and include any searchfield query

web2/addons/job_monarch/libtoga.php:

  • added query filter for clusterimage node filtering
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web2/addons/job_monarch/js/jobgrid.js

    r562 r563  
    336336                method: 'POST'
    337337            });
     338
     339  var SearchField;
    338340
    339341  JobsDataStore = new Ext.data.Store({
     
    361363      ]),
    362364      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                }
    364387    });
    365388   
     
    467490
    468491  var win;
     492
     493  SearchField   = new Ext.app.SearchField({
     494                                store: JobsDataStore,
     495                                params: {start: 0, limit: mylimit},
     496                                width: 200
     497                    });
    469498
    470499  JobListingEditorGrid =  new Ext.grid.EditorGridPanel({
     
    486515                plugins: [new Ext.ux.PageSizePlugin()]
    487516            }),
    488       tbar: [ new Ext.app.SearchField({
    489                                 store: JobsDataStore,
    490                                 params: {start: 0, limit: mylimit},
    491                                 width: 200
    492                     }),
     517      tbar: [ SearchField,
    493518                new Ext.Button({
    494519                                text: 'Show nodes',
     
    511536                                        }
    512537                                }
    513                         })
    514       ]
     538                        }) ]
    515539    });
    516540
Note: See TracChangeset for help on using the changeset viewer.