changeset 1854:c177197b065b

fix scroll_page_after_edit option so it is saved when checked in user settings
author Roger Haase <crosseyedpenguin@yahoo.com>
date Fri, 02 Nov 2012 14:02:18 -0700
parents e9dbd30024d4
children e1bf58e93749
files MoinMoin/constants/keys.py MoinMoin/templates/modify.html
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/constants/keys.py	Fri Nov 02 13:59:24 2012 -0700
+++ b/MoinMoin/constants/keys.py	Fri Nov 02 14:02:18 2012 -0700
@@ -92,7 +92,7 @@
 USEROBJ_ATTRS = [
     # User objects proxy these attributes of the UserProfile objects:
     NAME, DISABLED, ITEMID, ALIASNAME, ENC_PASSWORD, EMAIL, OPENID,
-    MAILTO_AUTHOR, SHOW_COMMENTS, RESULTS_PER_PAGE, EDIT_ON_DOUBLECLICK,
+    MAILTO_AUTHOR, SHOW_COMMENTS, RESULTS_PER_PAGE, EDIT_ON_DOUBLECLICK, SCROLL_PAGE_AFTER_EDIT,
     EDIT_ROWS, THEME_NAME, LOCALE, TIMEZONE, SUBSCRIBED_ITEMS, QUICKLINKS,
     CSS_URL,
 ]
--- a/MoinMoin/templates/modify.html	Fri Nov 02 13:59:24 2012 -0700
+++ b/MoinMoin/templates/modify.html	Fri Nov 02 14:02:18 2012 -0700
@@ -67,7 +67,7 @@
 {% endblock %}
 
 {% block options_for_javascript %}
-{%- if user.edit_on_doubleclick -%}
+{%- if user.scroll_page_after_edit -%}
     <br id="moin-scroll-page-after-edit" />
 {%- endif %}
 {% endblock %}