mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
Update lib/client/menu.js
This commit is contained in:
parent
0e87d6474b
commit
ce834b8470
1 changed files with 10 additions and 2 deletions
|
|
@ -22,12 +22,20 @@ CloudCommander.Menu.getConfig = (function(){
|
|||
foo: {name: "View", callback: function(key, opt){
|
||||
if(typeof CloudCommander.Viewer === 'function')
|
||||
CloudCommander.Viewer();
|
||||
else CloudCommander.Viewer.show();
|
||||
else{
|
||||
var lViewer = CloudCommander.Viewer.get();
|
||||
if(lViewer && lViewer.show)
|
||||
lViewer.show()
|
||||
}
|
||||
}},
|
||||
bar: {name: "Edit", callback: function(key, opt){
|
||||
if(typeof CloudCommander.Editor === 'function')
|
||||
CloudCommander.Editor();
|
||||
else CloudCommander.Editor.show();
|
||||
else{
|
||||
var lEditor = CloudCommander.Editor.get();
|
||||
if(lEditor && lEditor.show)
|
||||
lEditor.show()
|
||||
}
|
||||
|
||||
}}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue