Last modified: 2013-07-12 01:17:38 UTC
The [rollback] links should not open a new page when they are clicked by the editors. The action should be processed using AJAX, as is also requested for [patrol] links on bug 7851.
IIRC wikiHow has done this already, at least for [rollback] links. Maybe we could take a look at their implementation (wikiHow's source code dumps are available at http://src.wikihow.com/), clean it up and implement it?
There is also an implementation on [[b:User:Pathoschild/Scripts/Ajax_sysop.js]], but I don't know if it is still working after this comment: [[m:User_talk:Pathoschild#Ajax_sysop.js:_Patrolling_links_no_longer_inserted_into_RC.2Fwatchlist]]
(In reply to comment #2) > There is also an implementation on > [[b:User:Pathoschild/Scripts/Ajax_sysop.js]] [[m:User:Pathoschild/Scripts/Ajax_sysop.js]], I mean
Created attachment 9129 [details] AJAX rollback links (In reply to comment #2) > There is also an implementation on > [[m:User:Pathoschild/Scripts/Ajax_sysop.js]], > but I don't know if it is still working after this comment: > [[m:User_talk:Pathoschild#Ajax_sysop.js:_Patrolling_links_no_longer_inserted_into_RC.2Fwatchlist]] No, it isn't... =( I get ---- Uncaught TypeError: Object [object Object] has no method 'getElements' ---- if I install the script and go to recent changes using Google Chrome. I've attached an adaptation of [[m:User:Krinkle/Scripts/AjaxPatrolLinks.js]] which creates AJAX rollback links. It still needs to be fixed to use Mediawiki's API.
*** Bug 39468 has been marked as a duplicate of this bug. ***
This is very needed! To be resolved right after bug 7851. ;-) See also the bug for the user script https://github.com/Pathoschild/Wikimedia-contrib/issues/8 which links some half-done work to fix it, might be useful to build on.
I got an own idea for this already, which I hope to implement before next year. The idea basically implements the following flow: A click on a rollback link will show spinner in it, send an API request and show the user a success message (or an error one) including diff links etc. (a bit like the current AJAX patrol draft). On mouseover of a rollback link you see the default rollback message so that you're able to change it (or just use it as is, of course). I would like to implement one or even two new user preferences for this (I know we want to cut these down, but I don't see any better way for doing this): 1. One which allows users to disable this feature completely (there for sure will be several who rather use the old fashioned links as they directly show the diff) 2. And one which prompts the user for confirmation/ changing the edit summary instead of directly reverting on click of a rollback link (this is request very, very often)
Any news on this?