Changeset 857 for trunk


Ignore:
Timestamp:
06/18/07 23:13:48 (12 years ago)
Author:
ray
Message:

Ticket #1036 ExtendedFileManager? really slow to load

Location:
trunk/plugins/ExtendedFileManager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/ExtendedFileManager/assets/manager.js

    r840 r857  
    5555{ 
    5656    var offsetForInputs = (Xinha.is_ie) ? 230 : 210; 
    57 }     
     57}    
     58 
     59var h =  100 // space above files  
     60       + 250 // files iframe 
     61       + offsetForInputs;  
     62 
     63var win_dim = {width:650,height:h}; 
     64window.resizeTo(win_dim.width,win_dim.height); 
     65if (!Xinha.is_ie) 
     66{ 
     67  var x = opener.screenX + (opener.outerWidth - win_dim.width) / 2; 
     68  var y = opener.screenY + (opener.outerHeight - win_dim.height) / 2; 
     69} 
     70else 
     71{//IE does not have window.outer... , so center it on the screen at least 
     72  var x =  (self.screen.availWidth - win_dim.width) / 2; 
     73  var y =  (self.screen.availHeight - win_dim.height) / 2;       
     74} 
     75window.moveTo(x,y); 
     76 
    5877init = function () 
    5978{ 
    6079     
    61         var h =  100 // space above files  
    62            + 250 // files iframe 
    63            + offsetForInputs; 
    6480     
    6581    __dlg_init(null,  {width:650,height:h}); 
     
    555571} 
    556572addEvent(window, 'resize', resize); 
    557 addEvent(window, 'load', init); 
     573if (Xinha.is_gecko) 
     574{// this runs the init function (translation) before all the images in the iframe have loaded 
     575        document.addEventListener("DOMContentLoaded", init, false); 
     576} 
     577else 
     578{ 
     579        addEvent(window, 'load', init); 
     580} 
  • trunk/plugins/ExtendedFileManager/manager.php

    r770 r857  
    144144</tr> 
    145145<tr><td style="padding:10px; padding-top:0px;"> 
    146         <div id="messages" style="display: none;"><span id="message"></span><img src="<?php print $IMConfig['base_url'];?>img/dots.gif" width="22" height="12" alt="..." /></div> 
     146        <div id="messages"><span id="message">Loading</span><img src="<?php print $IMConfig['base_url'];?>img/dots.gif" width="22" height="12" alt="..." /></div> 
    147147        <iframe src="<?php print $IMConfig['backend_url']; ?>__function=images&amp;mode=<?php echo $insertMode;?>&amp;viewtype=<?php echo $IMConfig['view_type'] ?>" name="imgManager" id="imgManager" class="imageFrame" scrolling="auto" title="Image Selection" frameborder="0"></iframe> 
    148148</td></tr> 
Note: See TracChangeset for help on using the changeset viewer.