fix bug in javascript : document.onload does not exists, window.onload was the one...
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 16 Jan 2006 10:28:18 +0000 (10:28 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 16 Jan 2006 10:28:18 +0000 (10:28 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@217 839d8a87-29fc-0310-9880-83ba4fa771e5

htdocs/javascript/close_on_esc.js
htdocs/javascript/xorg.js

index 7fc4a41..0bf8eeb 100644 (file)
@@ -25,5 +25,5 @@ function closePopup(e) {
     }
 }
 
-attachEvent(document, 'keydown', closePopup);
+attachEvent(window, 'keydown', closePopup);
 
index 02ef26a..902a58b 100644 (file)
@@ -106,7 +106,7 @@ function auto_links() {
 
 // {{{ function pa_onload
 
-attachEvent(document, 'load', auto_links);
+attachEvent(window, 'load', auto_links);
 
 // }}}