overlay-parent.diff.js 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. context = context || document.body;
  21. var $overlay, $tabbable, $hasTabindex;
  22. @@ -950,12 +939,6 @@ Drupal.overlay.makeDocumentUntabbable = function (context) {
  23. * the entire page.
  24. */
  25. Drupal.overlay.makeDocumentTabbable = function (context) {
  26. - // Manipulating tabindexes is unacceptably slow in IE6 and IE7. In those
  27. - // browsers, the underlying page was never made unreachable via tab, so
  28. - // there is no work to be done here.
  29. - if (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) < 8) {
  30. - return;
  31. - }
  32. var $needsTabindex;
  33. context = context || document.body;
  34. @@ -963,18 +946,7 @@ Drupal.overlay.makeDocumentTabbable = function (context) {
  35. // Make the underlying document tabbable again by removing all existing
  36. // tabindex attributes.
  37. var $tabindex = $('[tabindex]', context);
  38. - if (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) < 8) {
  39. - // removeAttr('tabindex') is broken in IE6-7, but the DOM function
  40. - // removeAttribute works.
  41. - var i;
  42. - var length = $tabindex.length;
  43. - for (i = 0; i < length; i++) {
  44. - $tabindex[i].removeAttribute('tabIndex');
  45. - }
  46. - }
  47. - else {
  48. - $tabindex.removeAttr('tabindex');
  49. - }
  50. + $tabindex.removeAttr('tabindex');
  51. // Restore the tabindex attributes that existed before the overlay was opened.
  52. $needsTabindex = $(Drupal.overlay._hasTabindex, context);