changeset 2344:d1656cdee689

fixes displaying meta info and help without JS
author sharky93 <rishabhr123@gmail.com>
date Wed, 24 Jul 2013 20:01:30 +0530
parents cf3c02e75784
children 7dd810dc82e1
files MoinMoin/templates/basic.js MoinMoin/templates/snippets.html MoinMoin/themes/basic/templates/modify.html
diffstat 3 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/templates/basic.js	Wed Jul 24 20:01:30 2013 +0530
@@ -0,0 +1,3 @@
+$(document).ready(function (){
+    $('#gmeta, #emeta, #help').removeClass('active');
+});
--- a/MoinMoin/templates/snippets.html	Wed Jul 24 04:41:55 2013 +0530
+++ b/MoinMoin/templates/snippets.html	Wed Jul 24 20:01:30 2013 +0530
@@ -70,4 +70,5 @@
 {# Additional Javascript #}
 {% macro scripts() -%}
 <script src="{{ url_for('serve.files', name='bootstrap', filename='bootstrap/js/bootstrap.min.js') }}"></script>
+<script src="{{ url_for('frontend.template', filename='basic.js') }}"></script>
 {%- endmacro %}
--- a/MoinMoin/themes/basic/templates/modify.html	Wed Jul 24 04:41:55 2013 +0530
+++ b/MoinMoin/themes/basic/templates/modify.html	Wed Jul 24 20:01:30 2013 +0530
@@ -31,13 +31,13 @@
             <div class="tab-pane active" id="editor">
                 {{ basic_data_editor(form['content_form'], item_name, class='input-block-level') }}
             </div>
-            <div class="tab-pane" id="gmeta">
+            <div class="tab-pane active" id="gmeta">
                 {{ basic_meta_editor(form['meta_form']) }}
             </div>
-            <div class="tab-pane" id="emeta">
+            <div class="tab-pane active" id="emeta">
                 {{ forms.render(form['extra_meta_text'], class='span6') }}
             </div>
-            <div class="tab-pane" id="help">
+            <div class="tab-pane active" id="help">
                 {% if form['content_form'].help %}
                     <pre id="moin-editor-help">{{ form['content_form'].help }}</pre>
                 {% endif %}