//
// Markeer als gecontroleerd zonder nieuwe pagina te laden
// En voeg een paar extra handige linkjes toe, zoals "Markeer en ongedaan maken"
//
if (window.msbUsePatrolLinks == undefined || !msbUsePatrolLinks) {
addOnloadHook(markeerlink);
}
var markeernode = null;
var div = null;
var nextlink = null;
var prevlink = null;
function markeerlink() {
if (document.URL.indexOf('diff=') <0 ) return;
if (document.getElementById('mw-diff-ntitle4').getElementsByTagName('span').length==0) return;
markeernode = document.getElementById('mw-diff-ntitle4').getElementsByTagName('span').getElementsByTagName('a');
if (document.getElementById('differences-nextlink')) {
nextlink = document.getElementById('differences-nextlink').href;
}
if (document.getElementById('differences-prevlink')) {
prevlink = document.getElementById('differences-prevlink').href;
}
div = document.getElementById('mw-diff-ntitle4');
old = div.innerHTML;
div.innerHTML = "";
if (nextlink) {
div.innerHTML += '<a href="'+nextlink+'">Volgende wijziging ?</a><br /><br />';
}
if (prevlink) {
div.innerHTML += '';
}
div.innerHTML += '';
if (nextlink) {
div.innerHTML += '';
}
// Markeer en ongedaan-maken link
var node = document.getElementById('mw-diff-ntitle1').firstChild;
node.childNodes.style.display = 'none';
node.childNodes.innerHTML = 'T';
node.innerHTML += ' (<a href="'+node.childNodes.href+'" onclick="markeer1()">Markeer en Terugdraaien</a>)';
}
function m_pause(ms) {
var date = new Date();
var curDate = null;
do {
curDate = new Date();
} while(curDate-date < ms);
}
function markeer() {
if (markeernode) {
(new Image(10,10)).src = markeernode.href;
document.getElementById("markeer").style.display = 'none';
}
markeernode = null;
div.innerHTML = "";
if (nextlink) {
div.innerHTML = '<a href="'+nextlink+'">Volgende wijziging ?</a><br /><br />';
}
return false;
}
function markeer1() {
if (markeernode) {
(new Image(10,10)).src = markeernode.href;
document.getElementById("markeer").style.display = 'none';
}
markeernode = null;
div.innerHTML = "...";
m_pause(500);
div.innerHTML = "";
return false;
}