From aff8119136c666b1689134efd522aa98a6c7c407 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 17 Aug 2012 03:23:17 -0400 Subject: [PATCH] added class for preformatted text --- css/reset.css | 3 +++ lib/client/menu.js | 10 ++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/css/reset.css b/css/reset.css index 8ce88dde..461478f8 100644 --- a/css/reset.css +++ b/css/reset.css @@ -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 diff --git a/lib/client/menu.js b/lib/client/menu.js index 9baac7ee..434bef3c 100644 --- a/lib/client/menu.js +++ b/lib/client/menu.js @@ -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'); }} } };