Permalink
Browse files

ToC depth front-end cleanup to match the backend.

  • Loading branch information...
ubernostrum committed Apr 4, 2013
1 parent 3960a29 commit 83ba9023923830773beeffadf31d611c7ac0707d
@@ -2,22 +2,4 @@
<script src="{{ MEDIA_URL }}ckeditor/ckeditor.js"></script>
<script src="{{ MEDIA_URL }}ckeditor/adapters/jquery.js"></script>
<script src="{{ MEDIA_URL }}js/wiki_ckeditor.js"></script>
-
-<script type="text/javascript">
-$(document).ready(function() {
-
- var showing = 1,
- $show_toc_depth_block = $('#show_toc_depth_block');
-
- if($show_toc_depth_block.length) {
- $('#toc_customize').click(updateTocLevel);
- updateTocLevel();
- }
-
- function updateTocLevel() {
- showing = !showing;
- $show_toc_depth_block.animate({ 'opacity': showing ? 1 : 0 });
- }
-});
-</script>
-{% endif %}
+{% endif %}
@@ -1,10 +1,6 @@
<li>
<label><dfn title="{{_('Generate table of contents')}}">{{_('TOC:')}}</dfn></label>
- <div class="show_toc_block">
- {{ revision_form.show_toc | safe }}
- <a href="javascript:;" id="toc_customize">{{ _('customize') }}</a>
- </div>
<div id="show_toc_depth_block">
<label for="toc_depth" class="inline">
{{ _('In table of contents, show only levels up to and including:') }}

0 comments on commit 83ba902

Please sign in to comment.