Changeset 641


Ignore:
Timestamp:
08/04/09 12:10:20 (12 years ago)
Author:
ramonb
Message:

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

  • some new window positioning
Location:
trunk/web/addons/job_monarch
Files:
2 edited

Legend:

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

    r640 r641  
    387387function achorJobListing()
    388388{
    389         JobListingWindow.anchorTo( "ClusterImageWindow", "tr-br", [ 0, 10 ] );
     389        //JobListingWindow.anchorTo( "ClusterImageWindow", "tr-br", [ 0, 10 ] );
     390        JobListingWindow.anchorTo( "ClusterImageWindow", "tr-tr", [ 0, 10 ] );
    390391}
    391392
    392393function setClusterImagePosition()
    393394{
    394         ci_x = (window.innerWidth - ClusterImageWindow.getSize()['width'] - 20);
    395         ClusterImageWindow.setPosition( ci_x, 10 );
     395        //var ci_x = (window.innerWidth - ClusterImageWindow.getSize()['width'] - 20);
     396        ClusterImageWindow.setPosition( 10, 10 );
     397}
     398
     399function setJobListingPosition()
     400{
     401        var jl_x = (window.innerWidth - JobListingWindow.getSize()['width'] - 20);
     402        JobListingWindow.setPosition( jl_x, 10 );
    396403}
    397404
     
    463470                ClusterImageWindow.getBottomToolbar().clearStatus( { useDefaults:true } );
    464471                setTimeout( "resizeClusterImage()", 250 );
    465                 setTimeout( "setClusterImagePosition()", 500 );
     472                //setTimeout( "setClusterImagePosition()", 500 );
    466473                //setTimeout( "achorJobListing()", 1000 );
    467474        };
  • trunk/web/addons/job_monarch/templates/header.tpl

    r635 r641  
    4444        ClusterImageArgs['c']                   = '{cluster}';
    4545
     46        GraphSummaryWindow.show();
     47
    4648        ClusterImageWindow.html                 = '<IMG ID="clusterimage" SRC="{clusterimage}" USEMAP="#MONARCH_CLUSTER_BIG" BORDER="0">';
    4749        ClusterImageWindow.show();
     50        setClusterImagePosition();
    4851        reloadClusterImage();
    4952
    5053        JobListingWindow.setTitle( "{cluster} Jobs Overview" );
    5154        JobListingWindow.show();
     55        //achorJobListing();
     56        setJobListingPosition();
    5257        reloadJobStore();
    53 
    54         GraphSummaryWindow.show();
    5558
    5659        Ext.get( 'rjqjgraph' ).update( '<IMG ID="rjqj_graph" SRC="{rjqj_graph}" BORDER=0>' );
Note: See TracChangeset for help on using the changeset viewer.