fix bug in javascript : document.onload does not exists, window.onload was the one...
[platal.git] / htdocs / javascript / close_on_esc.js
index 7fc4a41..0bf8eeb 100644 (file)
@@ -25,5 +25,5 @@ function closePopup(e) {
     }
 }
 
-attachEvent(document, 'keydown', closePopup);
+attachEvent(window, 'keydown', closePopup);