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

Content deleted Content added
enable diffonly = 1; etc.
stop url from repeating
Line 71:
}
 
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;
Line 96 ⟶ 103:
}
 
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>)';
}
 
pendch_http.onreadystatechange = function() {
if(pendch_http.readyState == 4) pendch_ajax_response();