Changeset 1732


Ignore:
Timestamp:
12/02/09 10:03:43 (14 years ago)
Author:
amuller
Message:

Ticket #597 - Melhorias no módulos gerenciador de arquivos do expresso livre

Location:
sandbox/filemanager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sandbox/filemanager/inc/class.uifilemanager.inc.php

    r1731 r1732  
    125125                                'messages'      => array('messages'     => ''), 
    126126                                'show_upload_boxes'     => array('show_upload_boxes' => ''), 
     127                                'from'  =>      array('from' => ''), 
    127128                                'to' => array('to' => '') 
    128129 
     
    786787                                { 
    787788                                        if($this->bo->vfs->mv(array( 
    788                                                 'from'  => $file, 
     789                                                'from'  => $this->from . '/' . $file, 
    789790                                                'to'    => $this->to . '/' . $file, 
    790                                                 'relatives'     => array(RELATIVE_ALL, RELATIVE_NONE) 
     791                                                'relatives'     => array(RELATIVE_NONE, RELATIVE_NONE) 
    791792                                        ))) 
    792793                                        { 
    793794                                                $moved++; 
    794                                                 $this->messages[]=lang('Moved %1 to %2', $this->disppath.'/'.$file, $this->to.'/'.$file); 
     795                                                $this->messages[]=lang('Moved %1 to %2', $this->from . '/' . $file, $this->to . '/' . $file); 
    795796                                        } 
    796797                                        else 
     
    824825                                { 
    825826                                        if($this->bo->vfs->cp(array( 
    826                                                 'from'  => $file, 
     827                                                'from'  => $this->from . '/' . $file, 
    827828                                                'to'    => $this->to . '/' . $file, 
    828                                                 'relatives'     => array(RELATIVE_ALL, RELATIVE_NONE) 
     829                                                'relatives'     => array(RELATIVE_NONE, RELATIVE_NONE) 
    829830                                        ))) 
    830831                                        { 
     
    834835                                        else 
    835836                                        { 
    836                                                 $this->messages[] = lang('Error:').lang('Could not copy %1 to %2', $this->disppath.'/'.$file, $this->to.'/'.$file); 
     837                                                $this->messages[] = lang('Error:').lang('Could not copy %1 to %2',$this->from . '/' . $file , $this->to.'/'.$file); 
    837838                                        } 
    838839                                } 
  • sandbox/filemanager/js/draw_api.js

    r1730 r1732  
    261261                newpage += fl.td+sp_hd+'comm\')" id="comm">'+get_lang('comment')+'</a>'+sp_tl; 
    262262        if (preferences.version =='1') newpage += fl.td+sp_hd+'vers\')" id="vers">'+get_lang('version')+'</a>'+sp_tl+'</tr>'; 
    263  
     263        if (files != null) 
    264264        for (var i=0; i < files.length; i++) 
    265265        { 
     
    312312                if (preferences.version =='1') newpage += fl.td+'<span onclick="loadHistory(\''+files[i].name+'\')">'+files[i].vers+'</span></td></tr>'; 
    313313        } 
     314        else 
     315                newpage = "<b>"+get_lang('no files in this directory.')+"</b>"; 
    314316        fl.element.innerHTML = newpage; 
    315317        header = document.getElementsByName('head'); 
     
    476478                                elements[i]['url'] = address[0]+ 
    477479                                        "&"+escape(arg)+".x=10"+ 
     480                                        "&from="+base64_encode(currentPath)+ 
    478481                                        "&to="+base64_encode(inputEl.childNodes[i].innerHTML)+ 
    479482                                        filesUrl; 
Note: See TracChangeset for help on using the changeset viewer.