From 7142b5ffe2992a172fc0627445b286c66c6f204e Mon Sep 17 00:00:00 2001 From: jordan Date: Wed, 22 Dec 2010 22:39:53 +0000 Subject: [PATCH] When adding a question now you can see the markdown sidebar. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@625 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/skins/default/media/js/osqa.question.js | 6 ++++++ forum/skins/default/templates/question.html | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 forum/skins/default/media/js/osqa.question.js diff --git a/forum/skins/default/media/js/osqa.question.js b/forum/skins/default/media/js/osqa.question.js new file mode 100644 index 0000000..38347d5 --- /dev/null +++ b/forum/skins/default/media/js/osqa.question.js @@ -0,0 +1,6 @@ +$(function () { + $('div#editor_side_bar').hide(); + + $('#editor').focus(function(){ $('div#editor_side_bar').fadeIn('slow') }); + $('#editor').blur(function(){ $('div#editor_side_bar').fadeOut('slow') }); +}); diff --git a/forum/skins/default/templates/question.html b/forum/skins/default/templates/question.html index 1173ce9..7fdbafb 100644 --- a/forum/skins/default/templates/question.html +++ b/forum/skins/default/templates/question.html @@ -17,6 +17,7 @@ {% block title %}{% spaceless %}{{ question.headline }}{% endspaceless %}{% endblock %} {% block forejs %} {% if not question.nis.closed %} + @@ -262,7 +263,11 @@
{% include "subscription_status.html" %}
+ +{% markdown_help %} + {% sidebar_upper %} + {% cache 60 questions_tags settings.APP_URL question.id %}

-- 2.39.5