Changeset 555 for trunk/web2/addons
- Timestamp:
- 07/16/08 16:15:15 (15 years ago)
- Location:
- trunk/web2/addons/job_monarch
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web2/addons/job_monarch/image.php
r550 r555 22 22 * SVN $Id: image.php 329 2007-04-22 13:36:26Z bastiaans $ 23 23 */ 24 25 ini_set("memory_limit","200M"); 26 set_time_limit(0); 24 27 25 28 include_once "./libtoga.php"; -
trunk/web2/addons/job_monarch/index.php
r532 r555 23 23 */ 24 24 25 ini_set("memory_limit"," 100M");25 ini_set("memory_limit","200M"); 26 26 set_time_limit(0); 27 27 -
trunk/web2/addons/job_monarch/js/jobgrid.js
r554 r555 173 173 newClusterImage.loadEvent = function( url, image ) 174 174 { 175 resizeClusterImage(); 175 176 ClusterImageWindow.getBottomToolbar().clearStatus( { useDefaults:true } ); 176 177 } … … 180 181 } 181 182 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 function resizeClusterImage() 193 { 194 var ci_height = getCiWindowHeight(); 195 var ci_width = getCiWindowWidth(); 196 197 ClusterImageWindow.setSize( ci_width, ci_height ); 198 } 199 182 200 function initJobGrid() { 183 201 184 202 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 } 185 214 186 215 function jobCellClick(grid, rowIndex, columnIndex, e) … … 401 430 collapsible: true, 402 431 animCollapse: true, 403 width: 1 00,404 height: 1 00,432 width: 1, 433 height: 1, 405 434 y: 15, 406 435 plain: true, 407 436 shadow: true, 408 resizable: false, 437 //resizable: false, 438 resizable: true, 409 439 shadowOffset: 10, 410 440 layout: 'fit', … … 474 504 475 505 JobListingEditorGrid.addListener( 'cellclick', jobCellClick ); 476 } 506 ClusterImageWindow.addListener( 'resize', clusterImageResize ); 507 } -
trunk/web2/addons/job_monarch/templates/header.tpl
r554 r555 29 29 30 30 ClusterImageWindow.html = '<IMG ID="clusterimage" SRC="{clusterimage}" USEMAP="#MONARCH_CLUSTER_BIG" BORDER="0">'; 31 ClusterImageWindow.height = '{clusterimage_height}';32 ClusterImageWindow.width = '{clusterimage_width}';33 ClusterImageWindow.x = (window.innerWidth - ClusterImageWindow.width - 25);34 31 ClusterImageWindow.show(); 35 32 reloadClusterImage(); 36 33 37 34 JobListingWindow.setTitle( "{cluster} Jobs Overview" ); 38 JobListingWindow.y = ( {clusterimage_height}+ 150);35 JobListingWindow.y = (ClusterImageWindow.getSize()['height'] + 150); 39 36 JobListingWindow.show(); 40 37 reloadJobStore();
Note: See TracChangeset
for help on using the changeset viewer.