diff MoinMoin/PageGraphicalEditor.py @ 194:722b8f648630

Use addLoadEvent instead of window.onload=..., move countdown JS to external file imported from: moin--main--1.5--patch-196
author Thomas Waldmann <tw@waldmann-edv.de>
date Sat, 05 Nov 2005 20:41:13 +0000
parents e5ca7fa46f2e
children 4e9b5e9610da
line wrap: on
line diff
--- a/MoinMoin/PageGraphicalEditor.py	Sat Nov 05 17:39:14 2005 +0000
+++ b/MoinMoin/PageGraphicalEditor.py	Sat Nov 05 20:41:13 2005 +0000
@@ -154,9 +154,9 @@
             title % {'pagename': self.split_title(self.request),},
             page=self,
             pagename=self.page_name, msg=status,
-            body_onload=self.lock.locktype and 'countdown()' or '', # broken / bug in Mozilla 1.5, when using #preview
             html_head=self.lock.locktype and (
                 PageEditor._countdown_js % {
+                     'countdown_script': self.request.theme.externalScript('countdown'),
                      'lock_timeout': lock_timeout,
                      'lock_expire': lock_expire,
                      'lock_mins': lock_mins,