Changeset 857
- Timestamp:
- 06/18/07 23:13:48 (6 years ago)
- Location:
- trunk/plugins/ExtendedFileManager
- Files:
-
- 2 modified
-
assets/manager.js (modified) (2 diffs)
-
manager.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/ExtendedFileManager/assets/manager.js
r840 r857 55 55 { 56 56 var offsetForInputs = (Xinha.is_ie) ? 230 : 210; 57 } 57 } 58 59 var h = 100 // space above files 60 + 250 // files iframe 61 + offsetForInputs; 62 63 var win_dim = {width:650,height:h}; 64 window.resizeTo(win_dim.width,win_dim.height); 65 if (!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 } 70 else 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 } 75 window.moveTo(x,y); 76 58 77 init = function () 59 78 { 60 79 61 var h = 100 // space above files62 + 250 // files iframe63 + offsetForInputs;64 80 65 81 __dlg_init(null, {width:650,height:h}); … … 555 571 } 556 572 addEvent(window, 'resize', resize); 557 addEvent(window, 'load', init); 573 if (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 } 577 else 578 { 579 addEvent(window, 'load', init); 580 } -
trunk/plugins/ExtendedFileManager/manager.php
r770 r857 144 144 </tr> 145 145 <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> 147 147 <iframe src="<?php print $IMConfig['backend_url']; ?>__function=images&mode=<?php echo $insertMode;?>&viewtype=<?php echo $IMConfig['view_type'] ?>" name="imgManager" id="imgManager" class="imageFrame" scrolling="auto" title="Image Selection" frameborder="0"></iframe> 148 148 </td></tr>
