Update lib/client/keyBinding.js

This commit is contained in:
coderaiser 2012-07-30 10:45:05 +03:00
parent f86f8fc65c
commit 42cd65553b

View file

@ -39,15 +39,15 @@ CloudCommander.keyBinding=(function(){
lTabPanel[lId] = lCurrentFile;
lId === 'right' &&
(lId = 'left') ||
(lId = 'right');
lId = (lId === 'right')?
'left':'right';
if(lTabPanel[lId])
lTabPanel[lId].className = lCurrentFile;
lTabPanel[lId] &&
(lTabPanel[lId].className = lCurrentFile) ||
(getById(lId).getElementsByTagName('li')[2]
.className = lCURRENT_FILE);
else
getById(lId).getElementsByTagName('li')[2]
.className = lCURRENT_FILE;
lCurrentFile.className = '';