Projet

Général

Profil

Paste
Télécharger (2,38 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / jquery_update / replace / misc / 1.9 / overlay-parent.diff.js @ 503b3f7b

1
diff --git a/replace/misc/1.9/overlay-parent.js b/replace/misc/1.9/overlay-parent.js
2
index 480c007..9929f84 100644
3
--- a/replace/misc/1.9/overlay-parent.js
4
+++ b/replace/misc/1.9/overlay-parent.js
5
@@ -903,17 +903,6 @@ Drupal.overlay.getDisplacement = function (region) {
6
  *   the entire page.
7
  */
8
 Drupal.overlay.makeDocumentUntabbable = function (context) {
9
-  // Manipulating tabindexes for the entire document is unacceptably slow in IE6
10
-  // and IE7, so in those browsers, the underlying page will still be reachable
11
-  // via the tab key. However, we still make the links within the Disable
12
-  // message unreachable, because the same message also exists within the
13
-  // child document. The duplicate copy in the underlying document is only for
14
-  // assisting screen-reader users navigating the document with reading commands
15
-  // that follow markup order rather than tab order.
16
-  if (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) < 8) {
17
-    $('#overlay-disable-message a', context).attr('tabindex', -1);
18
-    return;
19
-  }
20
 
21
   context = context || document.body;
22
   var $overlay, $tabbable, $hasTabindex;
23
@@ -950,12 +939,6 @@ Drupal.overlay.makeDocumentUntabbable = function (context) {
24
  *   the entire page.
25
  */
26
 Drupal.overlay.makeDocumentTabbable = function (context) {
27
-  // Manipulating tabindexes is unacceptably slow in IE6 and IE7. In those
28
-  // browsers, the underlying page was never made unreachable via tab, so
29
-  // there is no work to be done here.
30
-  if (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) < 8) {
31
-    return;
32
-  }
33
 
34
   var $needsTabindex;
35
   context = context || document.body;
36
@@ -963,18 +946,7 @@ Drupal.overlay.makeDocumentTabbable = function (context) {
37
   // Make the underlying document tabbable again by removing all existing
38
   // tabindex attributes.
39
   var $tabindex = $('[tabindex]', context);
40
-  if (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) < 8) {
41
-    // removeAttr('tabindex') is broken in IE6-7, but the DOM function
42
-    // removeAttribute works.
43
-    var i;
44
-    var length = $tabindex.length;
45
-    for (i = 0; i < length; i++) {
46
-      $tabindex[i].removeAttribute('tabIndex');
47
-    }
48
-  }
49
-  else {
50
-    $tabindex.removeAttr('tabindex');
51
-  }
52
+  $tabindex.removeAttr('tabindex');
53
 
54
   // Restore the tabindex attributes that existed before the overlay was opened.
55
   $needsTabindex = $(Drupal.overlay._hasTabindex, context);