X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=htdocs%2Fjavascript%2Fclose_on_esc.js;h=b086c9365f7522e4bf056502988e1f1d750f2491;hb=4d8e2051a1744a78acddfdad2074908aa1f7df1f;hp=7fc4a41cbdf4dfce1016b025de2c5b5c85b5cc62;hpb=9f449375aa254a3af970d5eb0bd7f0478ed7363a;p=platal.git diff --git a/htdocs/javascript/close_on_esc.js b/htdocs/javascript/close_on_esc.js index 7fc4a41..b086c93 100644 --- a/htdocs/javascript/close_on_esc.js +++ b/htdocs/javascript/close_on_esc.js @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2003-2004 Polytechnique.org * + * Copyright (C) 2003-2007 Polytechnique.org * * http://opensource.polytechnique.org/ * * * * This program is free software; you can redistribute it and/or modify * @@ -25,5 +25,5 @@ function closePopup(e) { } } -attachEvent(document, 'keydown', closePopup); +attachEvent(window, 'keydown', closePopup);