[Jaws-commits] r13544 - trunk/jaws/html/include/Jaws/Ajax

afz at jaws-project.com afz at jaws-project.com
Thu Aug 30 19:23:46 UTC 2012


Author: afz
Date: 2012-08-30 19:23:46 +0000 (Thu, 30 Aug 2012)
New Revision: 13544

Modified:
   trunk/jaws/html/include/Jaws/Ajax/Ajax.js
Log:
[Ajax]: all major browsers compatible with contentWindow

Modified: trunk/jaws/html/include/Jaws/Ajax/Ajax.js
===================================================================
--- trunk/jaws/html/include/Jaws/Ajax/Ajax.js	2012-08-30 19:22:23 UTC (rev 13543)
+++ trunk/jaws/html/include/Jaws/Ajax/Ajax.js	2012-08-30 19:23:46 UTC (rev 13544)
@@ -393,12 +393,7 @@
         iframe.observe('load', function() {
             hideWorkingNotification();
             dialog.show();
-            if (Prototype.Browser.IE) {
-                var iframe_doc = iframe.contentWindow.document;
-            } else {
-                var iframe_doc = iframe.contentDocument.defaultView;
-            }
-            Event.observe(iframe_doc, 'keydown', function(e) {
+            Event.observe(iframe.contentWindow.document, 'keydown', function(e) {
                 if (e.keyCode == Event.KEY_ESC) {
                     hideDialogBox(name);
                 }



More information about the Jaws-commits mailing list