mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
minor changes
This commit is contained in:
parent
56396c4973
commit
41f1c13b7e
1 changed files with 8 additions and 10 deletions
|
|
@ -30,18 +30,16 @@ var CloudCommander, $;
|
|||
},
|
||||
// define the elements of the menu
|
||||
items: {
|
||||
view: {name: 'View', callback: function(key, opt){
|
||||
if(typeof CloudCommander.Viewer === 'function')
|
||||
CloudCommander.Viewer();
|
||||
else{
|
||||
var lViewer = CloudCommander.Viewer.get();
|
||||
if(lViewer && lViewer.show){
|
||||
var lCurrent = Util.getCurrentFile();
|
||||
|
||||
if(lCurrent)
|
||||
view: {name: 'View', callback: function(key, opt){
|
||||
var lCurrent = Util.getCurrentFile();
|
||||
if(lCurrent){
|
||||
if(typeof CloudCommander.Viewer === 'function')
|
||||
CloudCommander.Viewer(lCurrent);
|
||||
else{
|
||||
var lViewer = CloudCommander.Viewer.get();
|
||||
if(lViewer && lViewer.show)
|
||||
lViewer.show(lCurrent);
|
||||
}
|
||||
}
|
||||
}},
|
||||
|
||||
edit: {name: 'Edit', callback: function(key, opt){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue