Mercurial > moin-2.0-moinboot
changeset 2122:95b8101ef84f
merged
| author | Thomas Waldmann <tw AT waldmann-edv DOT de> |
|---|---|
| date | Sun, 07 Jul 2013 15:31:33 +0200 |
| parents | 2e23af158301 (current diff) 5c4b0703c62a (diff) |
| children | 2aaa55fc2f91 |
| files | |
| diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/templates/common.js Sun Jul 07 11:26:02 2013 +0200 +++ b/MoinMoin/templates/common.js Sun Jul 07 15:31:33 2013 +0200 @@ -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 Sun Jul 07 11:26:02 2013 +0200 +++ b/MoinMoin/templates/modify.html Sun Jul 07 15:31:33 2013 +0200 @@ -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']) }}
