Update lib/client/menu.js

This commit is contained in:
coderaiser 2012-08-14 15:01:56 +03:00
parent d4d30f9bc2
commit d63d82b0fd

View file

@ -30,14 +30,14 @@ CloudCommander.Menu.getConfig = (function(){
* @pParent - this
* @pCallBack - executes, when everything loaded
*/
CloudCommander.Menu.load = (function(pParent, pCallBack){
CloudCommander.Menu.load = (function(pParent){
return function(){
var ljsLoad_f = function(){
var lUISrc = pParent.dir + 'jquery.ui.position.js';
var lMenuSrc = pParent.dir + 'jquery.contextMenu.js';
pParent.jsload(lUISrc, function(){
pParent.jsload(lMenuSrc, pParent.show);
pParent.jsload(lMenuSrc, pParent.show(pParent));
});
};
@ -61,8 +61,10 @@ CloudCommander.Menu.set = (function(){
CloudCommander.Menu.seted = false;
CloudCommander.Menu.show = (function(pParent){
pParent.set();
$(CloudCommander.CURRENT_FILE).contextMenu();
return function(){
pParent.set();
$(CloudCommander.CURRENT_FILE).contextMenu();
}
});
CloudCommander.Menu.Keys = (function(){