User:Joshua Scott/Scripts/pendingchanges.js: Difference between revisions

Content deleted Content added
stop url from repeating
try again
Line 13:
var pendch_str_enable = "Enable this box";
var pendch_str_disable = "Disable this box";
 
 
if (window.___location.toString().search(/diffonly=1/) != -1) {
var currURL = window.___location.toString();
var newURL=currURL.replace(/diffonly=1/,diffonly=0);
document.getElementById("difference").innerHTML += '&nbsp;(<a href="' + newURL + '">Show page below diff</a>)';
}
 
addOnloadHook( pendch_init );
Line 71 ⟶ 78:
}
 
if (window.___location.toString().search(/diffonly=1/) != -1) {
var currURL = window.___location.toString();
var newURL=currURL.replace(/diffonly=1/,diffonly=0);
document.getElementById("difference").innerHTML += '&nbsp;(<a href="' + newURL + '">Show page below diff</a>)';
}
 
// Either make a request or show nothing
pendch_curr_idle_req = 0;