Changeset 1791
- Timestamp:
- 12/08/09 13:42:25 (14 years ago)
- Location:
- sandbox/filemanager
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/filemanager/inc/class.uiconfig.inc.php
r1787 r1791 69 69 )); 70 70 71 /* Clean the trash*/71 /* Clean the log */ 72 72 $GLOBALS['phpgw']->db->query('DELETE FROM phpgw_vfs WHERE directory = \''.$name.'\'',__LINE__,__FILE__); 73 73 if ($GLOBALS['phpgw']->db->Error) -
sandbox/filemanager/inc/class.uifilemanager.inc.php
r1785 r1791 452 452 if($this->path != $this->bo->homedir && $this->path != $this->bo->fakebase && $this->path != '/' && !$this->can_read) 453 453 { 454 echolang('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)); 457 457 $GLOBALS['phpgw']->common->phpgw_footer(); 458 458 $GLOBALS['phpgw']->common->phpgw_exit(); … … 471 471 { 472 472 $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)); 475 475 $GLOBALS['phpgw']->common->phpgw_footer(); 476 476 $GLOBALS['phpgw']->common->phpgw_exit(); -
sandbox/filemanager/js/common_functions.js
r1786 r1791 168 168 } 169 169 170 function enterComments(e, id){171 if (e.keyCode == 13) //Enter172 document.getElementById(id).blur();170 function enterComments(e,el){ 171 if (e.keyCode == KEY_ENTER) 172 el.blur(); 173 173 } 174 174 … … 215 215 nameLink.innerHTML = returnVal[2]; 216 216 nameLink.href="./index.php?menuaction=filemanager.uifilemanager.view&file="+base64_encode(returnVal[2])+"&path="+base64_encode(currentPath); 217 nameLink.target = "_blank"; 217 218 nameLink.id = "name_"+returnVal[2]; 218 219 -
sandbox/filemanager/js/draw_api.js
r1789 r1791 271 271 if (preferences.createdby_id =='1') retBuff += fl.td+file.creatdby+'</td>'; 272 272 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>'; 274 274 if (preferences.version =='1') retBuff += fl.td+'<span onclick="loadHistory(\''+file.name+'\')">'+file.vers+'</span></td>'; 275 275 return retBuff; … … 409 409 inputName.value = filename; 410 410 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(); }; 411 412 nameLink.parentNode.appendChild(inputName); 412 413 nameLink.parentNode.removeChild(nameLink); -
sandbox/filemanager/js/global.js
r1786 r1791 19 19 var permissions = new Array(); 20 20 var preferences = new Array(); 21 22 var KEY_ENTER = 13;
Note: See TracChangeset
for help on using the changeset viewer.