From 42cd65553b9d43ae17b84e2e1effac43c458bcd8 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 30 Jul 2012 10:45:05 +0300 Subject: [PATCH] Update lib/client/keyBinding.js --- lib/client/keyBinding.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/client/keyBinding.js b/lib/client/keyBinding.js index edfd0e7d..871b93d7 100644 --- a/lib/client/keyBinding.js +++ b/lib/client/keyBinding.js @@ -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 = '';