-{% block forejs %}
- <script type="text/javascript">
- var currentSideBar = 'div#title_side_bar';
- function changeSideBar(enabled_bar) {
- $(currentSideBar).hide();
- currentSideBar = enabled_bar;
- $(currentSideBar).fadeIn('slow');
-
- }
- $(function () {
- $('div#editor_side_bar').hide();
- $('div#tags_side_bar').hide();
-
- $('input#id_title').focus(function(){changeSideBar('div#title_side_bar')});
- $('textarea#editor').focus(function(){changeSideBar('div#editor_side_bar')});
- $('input#id_tags').focus(function(){changeSideBar('div#tags_side_bar')});
- });
- </script>
-{% endblock %}