Mercurial > moin-2.0-moinboot
changeset 2121:5c4b0703c62a
fix for broken scroll-after-edit
| author | Roger Haase <crosseyedpenguin@yahoo.com> |
|---|---|
| date | Sat, 15 Jun 2013 14:51:11 -0700 |
| parents | ad303592c64c |
| children | 95b8101ef84f |
| files | MoinMoin/templates/common.js MoinMoin/templates/modify.html |
| diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/templates/common.js Sat Jun 15 02:29:07 2013 +0200 +++ b/MoinMoin/templates/common.js Sat Jun 15 14:51:11 2013 -0700 @@ -572,7 +572,7 @@ // is option to scroll page after edit set? if (document.getElementById('moin-scroll-page-after-edit')) { // add click handler to OK (save) button to capture position of caret in textarea - $("#f_submit").click(function () { + $("#moin-save-text-button").click(function () { caretLineno = getCaretLineno(document.getElementById('f_content_form_data_text')); // save lineno for use in "show" page load if (caretLineno > 0) { sessionStorage.moinCaretLineNo = caretLineno; }
--- a/MoinMoin/templates/modify.html Sat Jun 15 02:29:07 2013 +0200 +++ b/MoinMoin/templates/modify.html Sat Jun 15 14:51:11 2013 -0700 @@ -40,7 +40,7 @@ POSTs originate from their respective applets. #} {% if not form['content_form'].is_draw %} - {{ forms.render_submit(form) }} + {{ forms.render_submit(form, id='moin-save-text-button') }} <dl> {{ forms.render_textcha(gen, form) }} {{ forms.render(form['comment']) }}
