fixed bug with pressing enter on file

This commit is contained in:
coderaiser 2013-02-19 09:22:50 -05:00
parent 044cca53c1
commit a5f2e11500
4 changed files with 7 additions and 4 deletions

View file

@ -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

View file

@ -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';
}

View file

@ -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>';

View file

@ -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
* обновляем страницу,