Update lib/client/keyBinding.js

This commit is contained in:
coderaiser 2012-07-30 10:42:01 +03:00
parent 4d8348e663
commit 8d60348975

View file

@ -38,16 +38,17 @@ CloudCommander.keyBinding=(function(){
var lId = lCurrentFile.parentElement.id;
lTabPanel[lId] = lCurrentFile;
if (lTabPanel[lId])
lTabPanel[lId].className = lCurrentFile;
else
getById(lId).getElementsByTagName('li')[2]
.className = lCURRENT_FILE;
lId === 'right' &&
(lId = 'left') ||
(lId = 'right');
lTabPanel[lId] &&
(lTabPanel[lId].className = lCurrentFile) ||
(getById(lId).getElementsByTagName('li')[2]
.className = lCURRENT_FILE);
lCurrentFile.className = '';
}catch(error){console.log(error);}