Roger Haase committed 5c4b070

fix for broken scroll-after-edit

Comments (0)

Files changed (2)


             // 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; }


        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') }}
             {{ forms.render_textcha(gen, form) }}
             {{ forms.render(form['comment']) }}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.