$(this.iframeWindow.document.body).css({
marginTop: Drupal.overlay.getDisplacement('top'),
marginBottom: Drupal.overlay.getDisplacement('bottom')
- })
- // IE7 isn't reflowing the document immediately.
- // @todo This might be fixed in a cleaner way.
- .addClass('overlay-trigger-reflow').removeClass('overlay-trigger-reflow');
+ });
var documentHeight = this.iframeWindow.document.body.clientHeight;
var documentWidth = this.iframeWindow.document.body.clientWidth;
* the entire page.
*/
Drupal.overlay.makeDocumentUntabbable = function (context) {
- // Manipulating tabindexes for the entire document is unacceptably slow in IE6
- // and IE7, so in those browsers, the underlying page will still be reachable
- // via the tab key. However, we still make the links within the Disable
- // message unreachable, because the same message also exists within the
- // child document. The duplicate copy in the underlying document is only for
- // assisting screen-reader users navigating the document with reading commands
- // that follow markup order rather than tab order.
- if (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) < 8) {
- $('#overlay-disable-message a', context).attr('tabindex', -1);
- return;
- }
-
context = context || document.body;
var $overlay, $tabbable, $hasTabindex;
* the entire page.
*/
Drupal.overlay.makeDocumentTabbable = function (context) {
- // Manipulating tabindexes is unacceptably slow in IE6 and IE7. In those
- // browsers, the underlying page was never made unreachable via tab, so
- // there is no work to be done here.
- if (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) < 8) {
- return;
- }
-
var $needsTabindex;
context = context || document.body;
// Make the underlying document tabbable again by removing all existing
// tabindex attributes.
- var $tabindex = $('[tabindex]', context);
- if (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) < 8) {
- // removeAttr('tabindex') is broken in IE6-7, but the DOM function
- // removeAttribute works.
- var i;
- var length = $tabindex.length;
- for (i = 0; i < length; i++) {
- $tabindex[i].removeAttribute('tabIndex');
- }
- }
- else {
- $tabindex.removeAttr('tabindex');
- }
+ $('[tabindex]', context).removeAttr('tabindex');
// Restore the tabindex attributes that existed before the overlay was opened.
$needsTabindex = $(Drupal.overlay._hasTabindex, context);
function seven_preprocess_html(&$vars) {
// Add conditional CSS for IE8 and below.
drupal_add_css(path_to_theme() . '/ie.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 8', '!IE' => FALSE), 'weight' => 999, 'preprocess' => FALSE));
- // Add conditional CSS for IE7 and below.
- drupal_add_css(path_to_theme() . '/ie7.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 7', '!IE' => FALSE), 'weight' => 999, 'preprocess' => FALSE));
}
/**