mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fixed bug with pressing enter on file
This commit is contained in:
parent
044cca53c1
commit
a5f2e11500
4 changed files with 7 additions and 4 deletions
|
|
@ -151,6 +151,8 @@ would not be supported anymore.
|
|||
* Added ability not to change url if we have no rights
|
||||
for reading.
|
||||
|
||||
* Fixed bug with pressing enter on file.
|
||||
|
||||
|
||||
2012.12.12, Version 0.1.8
|
||||
|
||||
|
|
|
|||
|
|
@ -449,7 +449,7 @@ CloudCmd._changeLinks = function(pPanelID){
|
|||
lName = lElement.textContent;
|
||||
|
||||
/* if it's directory - adding json extension */
|
||||
if( DOM.isCurrentDir() ){
|
||||
if( DOM.isCurrentIsDir() ){
|
||||
lName += '.json';
|
||||
lLink += '?json';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -898,7 +898,7 @@ var CloudCommander, Util,
|
|||
lParams.error = lError;
|
||||
|
||||
|
||||
if( DOM.isCurrentDir(lCurrentFile) )
|
||||
if( DOM.isCurrentIsDir(lCurrentFile) )
|
||||
lPath += '?json';
|
||||
|
||||
if(!lParams.url)
|
||||
|
|
@ -1055,7 +1055,7 @@ var CloudCommander, Util,
|
|||
*
|
||||
* @param pCurrentFile
|
||||
*/
|
||||
DOM.isCurrentDir = function(pCurrentFile){
|
||||
DOM.isCurrentIsDir = function(pCurrentFile){
|
||||
var lSize = DOM.getCurrentSize(pCurrentFile),
|
||||
lRet = lSize === '<dir>';
|
||||
|
||||
|
|
|
|||
|
|
@ -219,7 +219,8 @@ var CloudCommander, Util, DOM;
|
|||
|
||||
/* если нажали Enter - открываем папку*/
|
||||
else if(lKeyCode === KEY.ENTER)
|
||||
Util.exec(CloudCmd._loadDir());
|
||||
if(DOM.isCurrentIsDir())
|
||||
Util.exec(CloudCmd._loadDir());
|
||||
|
||||
/* если нажали <ctr>+r
|
||||
* обновляем страницу,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue