From 05de03461b6bf09fd0306f844d1f376586589721 Mon Sep 17 00:00:00 2001 From: Tom Preston-Werner Date: Wed, 14 Jul 2010 14:58:25 -0700 Subject: [PATCH] Initial twiddle mechanics. --- lib/gollum/frontend/public/javascript/gollum.js | 8 ++++++++ lib/gollum/frontend/templates/edit.mustache | 12 ++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/lib/gollum/frontend/public/javascript/gollum.js b/lib/gollum/frontend/public/javascript/gollum.js index 7703e843..a1b0d9a1 100644 --- a/lib/gollum/frontend/public/javascript/gollum.js +++ b/lib/gollum/frontend/public/javascript/gollum.js @@ -95,4 +95,12 @@ $(function(){ var format = $('#guides .write select[name=format] option:selected').attr('value') Gollum.enclose(el, 'gollum', 'image') }) + + $('#editbar .tab a').click(function() { + if ($(this).hasClass("open")) { + $(this).removeClass("open") + } else { + $(this).addClass("open") + } + }) }) diff --git a/lib/gollum/frontend/templates/edit.mustache b/lib/gollum/frontend/templates/edit.mustache index a53591bf..edb5472d 100644 --- a/lib/gollum/frontend/templates/edit.mustache +++ b/lib/gollum/frontend/templates/edit.mustache @@ -22,14 +22,14 @@ Image
- - Advanced + + Advanced - - Special Characters + + Special Characters - - Help + + Help