Ignore:
Timestamp:
02/01/08 22:44:49 (12 years ago)
Author:
ray
Message:

copied changes from branch 0.95_stable

Location:
trunk/plugins/ExtendedFileManager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/ExtendedFileManager/Classes/ExtendedFileManager.php

    r841 r957  
    810810                        break; 
    811811                        case 'moveFile': 
    812                                 $src = Files::makePath($this->getImagesDir(), $_GET['srcdir'].$_GET['file']); 
    813                                 $dest = Files::makePath($this->getImagesDir(), $_GET['dir'].$_GET['file']); 
     812                                $src = Files::makeFile($this->getImagesDir(), $_GET['srcdir'].$_GET['file']); 
     813                                $dest = Files::makeFile($this->getImagesDir(), $_GET['dir'].$_GET['file']); 
    814814                                return Files::rename($src,$dest); 
    815815                        break; 
  • trunk/plugins/ExtendedFileManager/assets/manager.js

    r954 r957  
    6666        window.resizeBy(0, page.y - dim.y + 5); 
    6767 
     68        dim = Xinha.viewportSize(window); 
     69         
    6870        if (!Xinha.is_ie) 
    6971        { 
    70           var x = opener.screenX + (opener.outerWidth - w) / 2; 
    71           var y = opener.screenY + (opener.outerHeight -h) / 2; 
     72          var x = opener.screenX + (opener.outerWidth - dim.x) / 2; 
     73          var y = opener.screenY + (opener.outerHeight - dim.x) / 2; 
    7274        } 
    7375        else 
    7476        {//IE does not have window.outer... , so center it on the screen at least 
    75           var x =  (self.screen.availWidth -w) / 2; 
    76           var y =  (self.screen.availHeight - h) / 2;    
     77          var x =  (self.screen.availWidth - dim.x) / 2; 
     78          var y =  (self.screen.availHeight - dim.y) / 2;        
    7779        } 
    7880        window.moveTo(x,y); 
Note: See TracChangeset for help on using the changeset viewer.