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

job_monarch/templates/header.tpl,
job_monarch/js/monarch.js:

  • code cleanup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web2/addons/job_monarch/templates/header.tpl

    r591 r593  
    1414<script type="text/javascript" src="./js/monarch.js"></script>
    1515<script type="text/javascript">
    16 Ext.onReady( function(){
    17   initJobGrid();
    18   JobProxy.on('beforeload', function(p, params)
    19     {
    20         params.c = "{cluster}";
    21         newparams = joinMyArray( params, myfilters );
    22         myparams = newparams;
    23         params = newparams;
    24     });
    2516
    26   ClusterImageArgs['{session_name}'] = '{session_id}';
    27   ClusterImageArgs['c'] = '{cluster}';
     17Ext.onReady( function()
     18{
     19        Ext.QuickTips.init();
    2820
    29   ClusterImageWindow.html = '<IMG ID="clusterimage" SRC="{clusterimage}" USEMAP="#MONARCH_CLUSTER_BIG" BORDER="0">';
    30   ClusterImageWindow.show();
    31   reloadClusterImage();
     21        JobProxy.on('beforeload', function(p, params)
     22        {
     23                params.c        = "{cluster}";
     24                newparams       = joinMyArray( params, myfilters );
     25                myparams        = newparams;
     26                params          = newparams;
     27        });
    3228
    33   JobListingWindow.setTitle( "{cluster} Jobs Overview" );
    34   JobListingWindow.show();
    35   reloadJobStore();
     29        ClusterImageArgs['{session_name}']      = '{session_id}';
     30        ClusterImageArgs['c']                   = '{cluster}';
    3631
    37   GraphSummaryWindow.show();
     32        ClusterImageWindow.html                 = '<IMG ID="clusterimage" SRC="{clusterimage}" USEMAP="#MONARCH_CLUSTER_BIG" BORDER="0">';
     33        ClusterImageWindow.show();
     34        reloadClusterImage();
    3835
    39   Ext.get( 'rjqjgraph' ).update( '<IMG ID="rjqj_graph" SRC="{rjqj_graph}" BORDER=0>' );
    40   Ext.get( 'pie' ).update( '<IMG ID="pie" SRC="{pie}" BORDER=0>' );
     36        JobListingWindow.setTitle( "{cluster} Jobs Overview" );
     37        JobListingWindow.show();
     38        reloadJobStore();
     39
     40        GraphSummaryWindow.show();
     41
     42        Ext.get( 'rjqjgraph' ).update( '<IMG ID="rjqj_graph" SRC="{rjqj_graph}" BORDER=0>' );
     43        Ext.get( 'pie' ).update( '<IMG ID="pie" SRC="{pie}" BORDER=0>' );
    4144});
    4245</script>
Note: See TracChangeset for help on using the changeset viewer.