Changeset 561 for trunk/web2


Ignore:
Timestamp:
01/21/09 23:42:32 (14 years ago)
Author:
ramonb
Message:

web2/..../jobgrid.js:

  • added 'max' page size to return all jobs
File:
1 edited

Legend:

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

    r560 r561  
    1717        store: new Ext.data.SimpleStore({
    1818            fields: ['text', 'value'],
    19             data: [['10', 10], ['15', 15], ['20', 20], ['30', 30], ['50', 50], ['100', 100]]
     19            data: [['10', 10], ['15', 15], ['20', 20], ['30', 30], ['50', 50], ['100', 100], ['max', 'max' ]]
    2020        }),
    2121        mode: 'local',
     
    4444   
    4545    onPageSizeChanged: function(combo) {
    46         mylimit = parseInt(combo.getValue());
     46        if ( combo.getValue() == 'max' )
     47          mylimit = JobsDataStore.getTotalCount();
     48        else
     49          mylimit = parseInt(combo.getValue());
    4750        this.pageSize = mylimit;
    4851        this.doLoad(0);
Note: See TracChangeset for help on using the changeset viewer.