Changeset 636


Ignore:
Timestamp:
08/03/09 18:17:32 (15 years ago)
Author:
ramonb
Message:

job_monarch/js/monarch.js:

  • added preview pane
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/addons/job_monarch/js/monarch.js

    r635 r636  
    688688                                        filter_str = myparams.c + ' Jobs Overview' + makeFilterString();
    689689                                        JobListingWindow.setTitle( filter_str );
     690                                }
     691                        }
     692                },
     693                'load':
     694                {
     695                        scope: this,
     696                        fn:
     697
     698                        function( store, records, options )
     699                        {
     700                                if( records.length == 1 )
     701                                {
     702                                        jobid           = records[0].get('jid');
     703
     704                                        myPanel         = createGraphPanel();
     705                                        nodeDatastore   = createNodesDataStore( myparams.c, jobid );
     706                                        graphView       = createGraphView( nodeDatastore, jobid );
     707
     708                                        //graphView.autoShow = true;
     709
     710                                        newtab = myPanel.add( graphView );
     711                                        myPanel.setActiveTab( newtab );
     712                                        myPanel.doLayout();
     713
     714                                        //nodeDatastore.removeAll();
     715
     716                                        Ext.getCmp('preview-pane').removeAll();
     717                                        Ext.getCmp('preview-pane').add( myPanel );
     718                                        Ext.getCmp('preview-pane').doLayout();
     719                                }
     720                                else
     721                                {
     722                                        Ext.getCmp('preview-pane').removeAll();
     723                                        Ext.getCmp('preview-pane').doLayout();
    690724                                }
    691725                        }
     
    9911025                                        selectOnFocus:  true,
    9921026                                        xtype:          'combo',
    993                                         width:          190,
     1027                                        width:          100,
    9941028                                        myview:         view,
    9951029                                        listeners:
     
    11291163        {
    11301164                id:             'JobListingEditorGrid',
     1165                region:         'center',
    11311166                store:          JobsDataStore,
    11321167                cm:             JobsColumnModel,
     
    12311266                                id:             'monarchlogo',
    12321267                                cls:            'monarch',
    1233                                 bodyStyle:      'background: transparent',
    1234                                 //html:         '<A HREF="https://subtrac.sara.nl/oss/jobmonarch/" TARGET="_blank"><IMG SRC="./jobmonarch.gif" ALT="Job Monarch" BORDER="0"></A>'
    1235                                 //colspan: 2
     1268                                bodyStyle:      'background: transparent'
    12361269                        },{
    12371270                                id:             'summarycount'
     
    12651298                y:              375,
    12661299                width:          860,
    1267                 height:         445,
     1300                height:         645,
    12681301                plain:          true,
    12691302                shadow:         true,
    12701303                shadowOffset:   10,
    1271                 layout:         'fit',
    1272                 items:          JobListingEditorGrid
     1304                layout:         'border',
     1305                items:         
     1306                [               JobListingEditorGrid,
     1307                                {
     1308                                        region:         'south',
     1309                                        layout:         'fit',
     1310                                        id:             'preview-pane',
     1311                                        height:         200,
     1312                                        collapsible:    true,
     1313                                        border:         true,
     1314                                        title:          'Preview',
     1315                                        split:          true,
     1316                                        bodyStyle:      'overflow:auto; background: transparent; heigth: auto'
     1317                                }
     1318                ]
    12731319        });
Note: See TracChangeset for help on using the changeset viewer.