diff --git a/lib/client/keyBinding.js b/lib/client/keyBinding.js index 6d1b5b83..edfd0e7d 100644 --- a/lib/client/keyBinding.js +++ b/lib/client/keyBinding.js @@ -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);}