User:Technical 13/Scripts/OrphanStatus.js: Difference between revisions

Content deleted Content added
Technical 13 (talk | contribs)
Just use a deOrphan link like the others for now. I'll figure this out later. Add a "diff" link next to "reload" in case the user wants to check their edit.
Technical 13 (talk | contribs)
Hrmm.. Not deOrphaning again... So confused, since nothing changed that's important (or so I think)...
Line 1:
if(mw.config.get('wgNamespaceNumber') === 0 && $.inArray("All orphaned articles", mw.config.get('wgCategories')) >= 0){
function deOrphan(backLinks){
$(".loadinganimation").html("Article deOrphaning in progress..."); })
var deOrphanerRequest = {
action:"query",
Line 21 ⟶ 22:
token: mw.user.tokens.get( 'editToken' )
};
console.log(deOrphanerContent);
$.when(
$.post(mw.config.get( 'wgScriptPath' )+"/api.php", deOrphanerSubmit, function(deOrphanerSesponse){ })
$(".loadinganimation").html("Article deOrphaning in progress..."); })
).done(function() {
$(".loadinganimation").html('Article deOrphaned! <small>(<a href="#reLoad" onClick="___location.reload();" style="font-weight: bold;">reload</a> | <a href="//en.wikipedia.org/w/index.php?title=' + mw.config.get("wgTitle") + '&diff=cur&oldid=prev" style="font-weight: bold;">diff</a>)</small>');