Changeset 594 for trunk/web2/addons


Ignore:
Timestamp:
02/05/09 11:49:12 (15 years ago)
Author:
ramonb
Message:

job_monarch/js/monarch.js:

  • changed show graphs button into menu button
File:
1 edited

Legend:

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

    r593 r594  
    4444                                        myButton.menu.show( myButton.getEl() );
    4545                                }
     46                }
     47        }
     48});
     49
     50function checkGraphWindowOption( item, checked )
     51{
     52        alert('Item Check', 'You {1} the "{0}" menu item.', item.text, checked ? 'checked' : 'unchecked');
     53}
     54
     55var graphMenu = new Ext.menu.Menu(
     56{
     57        id:     'graphMenu',
     58        items:
     59        [{
     60                text:           'Each job in new window',
     61                checked:        false,
     62                group:          'graphwindow',
     63                handler:        checkGraphWindowOption
     64        },{
     65                text:           'Each job in a seperate tab, in new window',
     66                checked:        true,
     67                group:          'graphwindow',
     68                handler:        checkGraphWindowOption
     69        },{
     70                text:           'Each job in a seperate tab, in last opened window',
     71                checked:        false,
     72                group:          'graphwindow',
     73                handler:        checkGraphWindowOption
     74        }]
     75});
     76
     77var showGraphsButton = new Ext.MenuButton(
     78{
     79        id:             'showgraphbutton',
     80        text:           'Show graphs',
     81        disabled:       true,
     82        menu:           graphMenu,
     83        listeners:
     84        {
     85                'click':
     86                {
     87                        scope:  this,
     88                        fn:     ShowGraphs
    4689                }
    4790        }
     
    902945}
    903946
    904 var showGraphsButton =
    905 
    906         new Ext.Button(
    907         {
    908                 text:           'Show graphs',
    909                 tooltip:        'Show node graphs for selected jobs',
    910                 iconCls:        'option',
    911                 disabled:       true,
    912                 listeners:
    913                 {
    914                         'click':
    915                         {
    916                                 scope:  this,
    917                                 fn:     ShowGraphs
    918                         }
    919                 }
    920         });
    921 
    922947var JobListingEditorGrid =
    923948
Note: See TracChangeset for help on using the changeset viewer.