From 67fc2586e592286da45e0d9d0c88749d441fa505 Mon Sep 17 00:00:00 2001 From: Bridger Maxwell Date: Sun, 8 Jan 2012 04:53:22 -0500 Subject: [PATCH] Fixed bugs in templates. Now working as they were originally, but with Mako. --- simplewiki_base.html | 17 ++++++++++++----- simplewiki_error.html | 25 +++++++++++-------------- 2 files changed, 23 insertions(+), 19 deletions(-) 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