Changeset 1791


Ignore:
Timestamp:
12/08/09 13:42:25 (14 years ago)
Author:
amuller
Message:

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

Location:
sandbox/filemanager
Files:
5 edited

Legend:

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

    r1787 r1791  
    6969                         )); 
    7070 
    71                          /* Clean the trash */ 
     71                         /* Clean the log */ 
    7272                         $GLOBALS['phpgw']->db->query('DELETE FROM phpgw_vfs WHERE directory = \''.$name.'\'',__LINE__,__FILE__); 
    7373                         if ($GLOBALS['phpgw']->db->Error) 
  • sandbox/filemanager/inc/class.uifilemanager.inc.php

    r1785 r1791  
    452452                        if($this->path != $this->bo->homedir && $this->path != $this->bo->fakebase && $this->path != '/' && !$this->can_read) 
    453453                        { 
    454                                 echo lang('You do not have access to %1', $this->path); 
    455                                 $this->html_link('/index.php','menuaction=filemanager.uifilemanager.index','path='.$this->homedir, lang('Go to your home directory')); 
    456  
     454                                $this->messages[] = lang('You do not have access to %1', $this->path); 
     455                                $this->path = $this->homedir; 
     456                                $this->bo->vfs->cd(array('string' => $this->path, 'relatives' => array(RELATIVE_NONE), 'relative' => False)); 
    457457                                $GLOBALS['phpgw']->common->phpgw_footer(); 
    458458                                $GLOBALS['phpgw']->common->phpgw_exit(); 
     
    471471                                { 
    472472                                        $this->messages[] = lang('Error:').lang('Directory %1 does not exist', $this->path); 
    473                                         $this->html_link('/index.php','menuaction=filemanager.uifilemanager.index','path='.$this->bo->homedir, lang('Go to your home directory')); 
    474  
     473                                        $this->path = $this->homedir; 
     474                                        $this->bo->vfs->cd(array('string' => $this->path, 'relatives' => array(RELATIVE_NONE), 'relative' => False)); 
    475475                                        $GLOBALS['phpgw']->common->phpgw_footer(); 
    476476                                        $GLOBALS['phpgw']->common->phpgw_exit(); 
  • sandbox/filemanager/js/common_functions.js

    r1786 r1791  
    168168} 
    169169 
    170 function enterComments(e,id){ 
    171         if (e.keyCode == 13) //Enter 
    172                 document.getElementById(id).blur(); 
     170function enterComments(e,el){ 
     171        if (e.keyCode == KEY_ENTER) 
     172                el.blur(); 
    173173} 
    174174 
     
    215215                nameLink.innerHTML = returnVal[2]; 
    216216                nameLink.href="./index.php?menuaction=filemanager.uifilemanager.view&file="+base64_encode(returnVal[2])+"&path="+base64_encode(currentPath); 
     217                nameLink.target = "_blank"; 
    217218                nameLink.id = "name_"+returnVal[2]; 
    218219                 
  • sandbox/filemanager/js/draw_api.js

    r1789 r1791  
    271271                if (preferences.createdby_id =='1') retBuff += fl.td+file.creatdby+'</td>'; 
    272272                if (preferences.modifiedby_id =='1') retBuff += fl.td+file.modifdby+'</td>'; 
    273                 if (preferences.comment =='1') retBuff += fl.td+'<input id="'+file.name+'" class="inputComment" onkeydown="enterComments(event,\''+file.name+'\')" onclick="presetComments(this)" onblur="setComments(this)" value="'+file.comm+'" alt="'+get_lang('Click to change comments')+'" title="'+get_lang('Click to change comments')+'"></input></td>'; 
     273                if (preferences.comment =='1') retBuff += fl.td+'<input id="'+file.name+'" class="inputComment" onkeydown="enterComments(event,this)" onclick="presetComments(this)" onblur="setComments(this)" value="'+file.comm+'" alt="'+get_lang('Click to change comments')+'" title="'+get_lang('Click to change comments')+'"></input></td>'; 
    274274                if (preferences.version =='1') retBuff += fl.td+'<span onclick="loadHistory(\''+file.name+'\')">'+file.vers+'</span></td>'; 
    275275                return retBuff; 
     
    409409                                        inputName.value = filename; 
    410410                                        inputName.onblur = function () { cExecute('./index.php?menuaction=filemanager.vfs_functions.rename&file='+base64_encode(this.id.substr(6))+'&to='+base64_encode(this.value)+"&path="+base64_encode(currentPath),handlerRename) }; 
     411                                        inputName.onkeydown=function (event) {if (event.keyCode == KEY_ENTER) this.blur(); }; 
    411412                                        nameLink.parentNode.appendChild(inputName); 
    412413                                        nameLink.parentNode.removeChild(nameLink); 
  • sandbox/filemanager/js/global.js

    r1786 r1791  
    1919var permissions = new Array(); 
    2020var preferences = new Array(); 
     21 
     22var KEY_ENTER = 13; 
Note: See TracChangeset for help on using the changeset viewer.