https://bugzilla.wikimedia.org/show_bug.cgi?id=44803

       Web browser: ---
            Bug ID: 44803
           Summary: The functionality to restore the edit textarea scroll
                    on preview is not working
           Product: MediaWiki
           Version: 1.21-git
          Hardware: All
                OS: All
            Status: NEW
          Keywords: easy
          Severity: trivial
          Priority: Unprioritized
         Component: Page editing
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

MediaWiki had a functionality that when you edit a page and the edit area has a
vertical scroll, when you hit preview, after the page loads again the edit area
gets scrolled to the point it was before hitting the preview button.

This is no longer working since a lot of time but I'm missing it.

In fact the code is there. See JavaScript function scrollEditBox in
resources/mediawiki.action/mediawiki.action.edit.js [1]

In fact, the edit form has a hidden input field "wpScrolltop" that is being
filled correctly when you hit submit, and the server responds back with that
field with the same value that it was submitted. Manually executing the
function restores the scroll position. So maybe the function isn't being
executed at all (maybe a JS error before it? or some other code is
changing/interfering with the scroll position of the textarea.

----

[1]
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=resources/mediawiki.action/mediawiki.action.edit.js;hb=HEAD#l135

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to