Changeset 588 for trunk


Ignore:
Timestamp:
02/04/09 16:47:11 (14 years ago)
Author:
ramonb
Message:

job_monarch/js/jobgrid.js:

  • correctly clear query filter
File:
1 edited

Legend:

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

    r584 r588  
    7171function clearFilters()
    7272{
     73        if( inMyArrayKeys( myfilters, 'query' ) )
     74        {
     75                SearchField.getEl().dom.value = '';
     76                delete SearchField.store.baseParams['query'];
     77                delete myfilters['query'];
     78                delete myparams['query'];
     79        }
    7380        if( inMyArrayKeys( myfilters, 'host' ) )
    7481        {
     
    296303{
    297304  filterValue = menuItem.text;
     305
     306  if( filterValue == SearchField.getEl().dom.value && inMyArrayKeys( myfilters, 'query' ) )
     307  {
     308    SearchField.getEl().dom.value = '';
     309    delete SearchField.store.baseParams['query'];
     310  }
    298311
    299312  for( arkey in myfilters )
Note: See TracChangeset for help on using the changeset viewer.