User:PC-XT/Advisor.js: Difference between revisions

Content deleted Content added
m Add nowiki to remove erroneous template transclusion
maintenance: more info TypeError: Cannot read property 'parentNode' of null
 
(One intermediate revision by the same user not shown)
Line 253:
var e = document.getElementById('editform');
while (true) {
var p = e && e.previousSibling;
if ( (p == null) || ((p.nodeType == 1) && (p.id != 'toolbar')) ) {
break;
Line 259:
e = p;
}
if(e) {
e.parentNode.insertBefore(ct.eSuggestions, e);
} else {
return;
}
ct.eAddToSummary = document.createElement('DIV');
ct.eAddToSummary.style.border = 'dashed #ccc 1px';