diff --git a/simplewiki_base.html b/simplewiki_base.html
index 039bbf05fb..934a48e4c6 100644
--- a/simplewiki_base.html
+++ b/simplewiki_base.html
@@ -22,6 +22,7 @@
document.getElementById('wiki_related_input_id').value = s.id;
document.getElementById('wiki_related_input_submit').disabled=false;
}
+ %if wiki_article is not UNDEFINED:
var x = window.onload;
window.onload = function(){
var options = {
@@ -36,6 +37,7 @@
if (typeof x == 'function')
x();
}
+ %endif