mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
added class for preformatted text
This commit is contained in:
parent
16e7e56498
commit
aff8119136
2 changed files with 11 additions and 2 deletions
|
|
@ -49,6 +49,9 @@ ul{ margin: 1em 0; padding: 0 20px 0 20px; }
|
|||
/* Hide from both screenreaders and browsers: h5bp.com/u */
|
||||
.hidden { display: none !important; visibility: hidden; }
|
||||
|
||||
/* preformatted text */
|
||||
.pre {white-space:pre}
|
||||
|
||||
/* ==== print styles =======================================================
|
||||
Print styles.
|
||||
Inlined to avoid required HTTP connection: h5bp.com/r
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ CloudCommander.Menu.getConfig = (function(){
|
|||
selector: 'li',
|
||||
// define the elements of the menu
|
||||
items: {
|
||||
view: {name: "View", callback: function(key, opt){
|
||||
view: {name: 'View', callback: function(key, opt){
|
||||
if(typeof CloudCommander.Viewer === 'function')
|
||||
CloudCommander.Viewer();
|
||||
else{
|
||||
|
|
@ -27,7 +27,8 @@ CloudCommander.Menu.getConfig = (function(){
|
|||
lViewer.show();
|
||||
}
|
||||
}},
|
||||
edit: {name: "Edit", callback: function(key, opt){
|
||||
|
||||
edit: {name: 'Edit', callback: function(key, opt){
|
||||
lThis.Images.showLoad();
|
||||
|
||||
if(typeof CloudCommander.Editor === 'function')
|
||||
|
|
@ -38,6 +39,11 @@ CloudCommander.Menu.getConfig = (function(){
|
|||
lEditor.show();
|
||||
}
|
||||
|
||||
}},
|
||||
|
||||
'delete': {name: 'Delete',
|
||||
callback: function(key, opt){
|
||||
console.log('delete menu item choosen');
|
||||
}}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue