fix(menu) View, Show -> retExec(show, "View, Show")

This commit is contained in:
coderaiser 2013-07-31 12:42:58 +00:00
parent a320c2fd71
commit bc877804a8

View file

@ -168,8 +168,8 @@ var CloudCmd, Util, DOM, CloudFunc, $;
function getConfig (){
var lRet,
lMenuItems = {
'View' : CloudCmd.View,
'Edit' : CloudCmd.Edit,
'View' : Util.retExec(show, 'View'),
'Edit' : Util.retExec(show, 'Edit'),
'Rename' : function(){
setTimeout( Util.retExec(DOM.renameCurrent), 100);
},
@ -213,6 +213,14 @@ var CloudCmd, Util, DOM, CloudFunc, $;
};
return lRet;
function show(pName){
var lEditor = CloudCmd[pName],
lResult = Util.exec(lEditor);
if (!lResult)
Util.exec(lEditor.show);
}
}
/** function loads css and js of Menu