mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(menu) View, Show -> retExec(show, "View, Show")
This commit is contained in:
parent
a320c2fd71
commit
bc877804a8
1 changed files with 10 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue