Changeset 556
- Timestamp:
- 07/19/08 17:16:25 (15 years ago)
- Location:
- trunk/web2/addons/job_monarch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web2/addons/job_monarch/js/jobgrid.js
r555 r556 162 162 }; 163 163 164 function achorJobListing() 165 { 166 JobListingWindow.anchorTo( "ClusterImageWindow", "tr-br", [ 0, 10 ] ); 167 } 168 169 function setClusterImagePosition() 170 { 171 ci_x = (window.innerWidth - ClusterImageWindow.getSize()['width'] - 20); 172 ClusterImageWindow.setPosition( ci_x, 10 ); 173 } 174 164 175 function reloadClusterImage() 165 176 { … … 173 184 newClusterImage.loadEvent = function( url, image ) 174 185 { 175 resizeClusterImage();176 186 ClusterImageWindow.getBottomToolbar().clearStatus( { useDefaults:true } ); 187 setTimeout( "resizeClusterImage()", 250 ); 188 setTimeout( "setClusterImagePosition()", 500 ); 189 setTimeout( "achorJobListing()", 1000 ); 177 190 } 178 191 … … 181 194 } 182 195 183 function getCiWindowWidth()184 {185 return (document.getElementById( "clusterimage" ).width + ClusterImageWindow.getFrameWidth());186 }187 function getCiWindowHeight()188 {189 return (document.getElementById( "clusterimage" ).height + ClusterImageWindow.getFrameHeight());190 }191 192 196 function resizeClusterImage() 193 197 { 194 var ci_height = getCiWindowHeight();195 var ci_width = getCiWindowWidth();198 var ci_height = document.getElementById( "clusterimage" ).height + ClusterImageWindow.getFrameHeight(); 199 var ci_width = document.getElementById( "clusterimage" ).width + ClusterImageWindow.getFrameWidth(); 196 200 197 201 ClusterImageWindow.setSize( ci_width, ci_height ); … … 201 205 202 206 Ext.QuickTips.init(); 203 204 function clusterImageResize( window, width, heigth )205 {206 var ci_height = getCiWindowHeight();207 var ci_width = getCiWindowWidth();208 209 if( ci_height != heigth || ci_width != width )210 {211 resizeClusterImage();212 }213 }214 207 215 208 function jobCellClick(grid, rowIndex, columnIndex, e) … … 435 428 plain: true, 436 429 shadow: true, 437 //resizable: false, 438 resizable: true, 430 resizable: false, 439 431 shadowOffset: 10, 440 432 layout: 'fit', … … 455 447 width: 300, 456 448 height: 500, 457 y: 15, 449 x: 10, 450 y: 10, 458 451 plain: true, 459 452 shadow: true, … … 504 497 505 498 JobListingEditorGrid.addListener( 'cellclick', jobCellClick ); 506 ClusterImageWindow.addListener( 'resize', clusterImageResize ); 507 } 499 } -
trunk/web2/addons/job_monarch/templates/header.tpl
r555 r556 33 33 34 34 JobListingWindow.setTitle( "{cluster} Jobs Overview" ); 35 JobListingWindow.y = (ClusterImageWindow.getSize()['height'] + 150);36 35 JobListingWindow.show(); 37 36 reloadJobStore();
Note: See TracChangeset
for help on using the changeset viewer.