changeset 2922:b99ff90c7fac

fix scroll page after edit not working in basic theme, copy code from modernized
author RogerHaase <haaserd@gmail.com>
date Fri, 20 Feb 2015 13:39:30 -0700
parents ac10a2e3eaf6
children f09bf7d9578e
files MoinMoin/themes/basic/templates/modify.html
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/templates/modify.html	Fri Feb 13 21:14:01 2015 +0100
+++ b/MoinMoin/themes/basic/templates/modify.html	Fri Feb 20 13:39:30 2015 -0700
@@ -99,3 +99,9 @@
         {{ gen.form.close() }}
     </div>
 {% endblock %}
+
+{% block options_for_javascript %}
+    {%- if user.scroll_page_after_edit -%}
+        <br id="moin-scroll-page-after-edit" />
+    {%- endif %}
+{% endblock %}