Ignore:
Timestamp:
01/26/09 13:06:22 (15 years ago)
Author:
ramonb
Message:

job_monarch/libtoga.php:

  • bugfix to host filtering in clusterimage

job_monarch/js/jobgrid.js:

  • added metric select combobox

job_monarch/jobstore.php:

  • added getmetrics task to fill metrics combobox
File:
1 edited

Legend:

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

    r568 r569  
    532532        dataIndex: 'nodes',
    533533        width: 100,
    534         hidden: true,
     534        hidden: false,
    535535        renderer: jobCellRender
    536536      },{
     
    560560
    561561  var win;
     562
     563  MetricsDataStore = new Ext.data.Store({
     564      id: 'MetricsDataStore',
     565      proxy: JobProxy,
     566      autoLoad: false,
     567      baseParams: { task: "GETMETRICS" },
     568      reader: new Ext.data.JsonReader({
     569        root: 'names',
     570        totalProperty: 'total',
     571        id: 'id'
     572      },[{
     573        name: 'ID'
     574      },{
     575        name: 'name'
     576        }])
     577  });
    562578
    563579  SearchField   = new Ext.app.SearchField({
     
    638654                        height      : 300,
    639655                        closeAction :'hide',
    640                         //tbar: next Ext.
     656                        tbar:   new Ext.form.ComboBox({
     657                                        fieldLabel: 'Metric',
     658                                        //hiddenName:'ID',
     659                                        store: MetricsDataStore,
     660                                        valueField:'name',
     661                                        displayField:'name',
     662                                        typeAhead: true,
     663                                        mode: 'remote',
     664                                        triggerAction: 'all',
     665                                        emptyText:'Select metric',
     666                                        selectOnFocus:true,
     667                                        xtype: 'combo',
     668                                        width:190
     669                                }),
    641670                        items:  [ images ]
    642671                    });
    643                 }
     672        }
    644673        NodesDataStore.load();
    645674        win.show(Button);
     
    705734      collapsible: true,
    706735      animCollapse: true,
    707       width: 300,
    708       height: 500,
     736      width: 500,
     737      height: 400,
    709738      x: 10,
    710739      y: 10,
     
    748777      y: 375,
    749778      width:860,
    750       height:427,
     779      height:445,
    751780      plain:true,
    752781      shadow: true,
Note: See TracChangeset for help on using the changeset viewer.