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 @@