mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
added editor and viewer commands
This commit is contained in:
parent
483a6dc61c
commit
5714189b0a
1 changed files with 11 additions and 2 deletions
|
|
@ -19,8 +19,17 @@ CloudCommander.Menu.getConfig = (function(){
|
|||
selector: 'li',
|
||||
// define the elements of the menu
|
||||
items: {
|
||||
foo: {name: "View", callback: function(key, opt){ CloudCommander.Viewer();}},
|
||||
bar: {name: "Edit", callback: function(key, opt){ CloudCommander.Editor();}}
|
||||
foo: {name: "View", callback: function(key, opt){
|
||||
if(typeof CloudCommander.Viewer === 'function')
|
||||
CloudCommander.Viewer();
|
||||
else CloudCommander.Viewer.show();
|
||||
}},
|
||||
bar: {name: "Edit", callback: function(key, opt){
|
||||
if(typeof CloudCommander.Editor === 'function')
|
||||
CloudCommander.Editor();
|
||||
else CloudCommander.Editor.show();
|
||||
|
||||
}}
|
||||
}
|
||||
// there's more, have a look at the demos and docs...
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue