From 5d6c9c594379b942e6e16955a67a6ea48dca139d Mon Sep 17 00:00:00 2001 From: Eston Bond Date: Mon, 15 Nov 2010 16:17:51 -0800 Subject: [PATCH] Add help button to menubar --- lib/gollum/frontend/public/css/editor.css | 2 ++ .../frontend/public/javascript/gollum-editor/gollum.editor.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/gollum/frontend/public/css/editor.css b/lib/gollum/frontend/public/css/editor.css index 5fd45342..92306b9b 100644 --- a/lib/gollum/frontend/public/css/editor.css +++ b/lib/gollum/frontend/public/css/editor.css @@ -147,6 +147,7 @@ a#function-h2 span { background-position: -244px 0; } a#function-h3 span { background-position: -271px 0; } a#function-link span { background-position: -298px 0; } a#function-image span { background-position: -324px 0; } +a#function-help span { background-position: -405px 0; } a#function-bold:hover span { background-position: 0 -28px; } a#function-italic:hover span { background-position: -27px -28px; } @@ -161,6 +162,7 @@ a#function-h2:hover span { background-position: -244px -28px; } a#function-h3:hover span { background-position: -271px -28px; } a#function-link:hover span { background-position: -298px -28px; } a#function-image:hover span { background-position: -324px -28px; } +a#function-help:hover span { background-position: -405px -28px; } #gollum-editor #gollum-editor-function-bar a.disabled { diff --git a/lib/gollum/frontend/public/javascript/gollum-editor/gollum.editor.js b/lib/gollum/frontend/public/javascript/gollum-editor/gollum.editor.js index 0337abbc..1a14b6ac 100644 --- a/lib/gollum/frontend/public/javascript/gollum-editor/gollum.editor.js +++ b/lib/gollum/frontend/public/javascript/gollum-editor/gollum.editor.js @@ -330,7 +330,7 @@ $('#gollum-editor-function-bar a.function-button').each(function() { if ( LanguageDefinition.getDefinitionFor( $(this).attr('id') ) ) $(this).click( FunctionBar.evtFunctionButtonClick ); - else + else if ( $(this).attr('id') != 'function-help' ) $(this).addClass('disabled'); });