From f6bd808ac66e689a171b1eb427e87b84ec029dfc Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 25 Oct 2012 04:44:53 -0400 Subject: [PATCH] minor changes --- lib/client/keyBinding.js | 3 +++ lib/client/viewer.js | 9 ++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/client/keyBinding.js b/lib/client/keyBinding.js index a94bea43..f863869e 100644 --- a/lib/client/keyBinding.js +++ b/lib/client/keyBinding.js @@ -81,7 +81,10 @@ var CloudCommander; } else if(lKeyCode === KEY.G && event.altKey){ + var lStorage = cloudcmd.Storage; + if( Util.isFunction(lStorage) ) + lStorage(); } /* если нажали таб: diff --git a/lib/client/viewer.js b/lib/client/viewer.js index 725a99e2..d80c83ca 100644 --- a/lib/client/viewer.js +++ b/lib/client/viewer.js @@ -205,10 +205,9 @@ var CloudCommander, CloudFunc, $; }; cloudcmd.Viewer.Keys = function(){ - var lCallBack_f = (function(){ - - var lF3 = cloudcmd.KEY.F3; - var key_event = function(pEvent){ + var lCallBack_f = function(){ + var lF3 = cloudcmd.KEY.F3, + key_event = function(pEvent){ /* если клавиши можно обрабатывать */ if( KeyBinding.get() ) if(pEvent.keyCode === lF3 && pEvent.shiftKey){ @@ -239,7 +238,7 @@ var CloudCommander, CloudFunc, $; /* showing images preview*/ FancyBox.show(); Util.Images.hideLoad(); - }); + }; Util.jqueryLoad(function(){ FancyBox.load(lCallBack_f);