From 5d4fa6f72511d4a3948d5527f9202d6cd2aa137f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 23 May 2010 18:23:32 +0000 Subject: - Rollback of #787940. --- misc/drupal.js | 18 ------------------ misc/tableheader.js | 2 +- 2 files changed, 1 insertion(+), 19 deletions(-) (limited to 'misc') diff --git a/misc/drupal.js b/misc/drupal.js index 9d7ec8089..d6f7597c3 100644 --- a/misc/drupal.js +++ b/misc/drupal.js @@ -299,24 +299,6 @@ Drupal.getSelection = function (element) { return { 'start': element.selectionStart, 'end': element.selectionEnd }; }; -/** - * Checks if position:fixed is supported. - * - * @return - * Boolean indicating whether or not position:fixed is supported. - * - * @see http://yura.thinkweb2.com/cft/#IS_POSITION_FIXED_SUPPORTED - */ -Drupal.positionFixedSupported = function () { - if (this._positionFixedSupported === undefined) { - var el = $('
').appendTo(document.body); - this._positionFixedSupported = el[0].offsetTop === 10; - el.remove(); - } - - return this._positionFixedSupported; -}; - /** * Build an error message from an AJAX response. */ diff --git a/misc/tableheader.js b/misc/tableheader.js index daae1924d..4efe26a43 100644 --- a/misc/tableheader.js +++ b/misc/tableheader.js @@ -42,7 +42,7 @@ Drupal.behaviors.tableHeader = { // Track positioning and visibility. function tracker(e) { // Reset top position of sticky table headers to the current top offset. - var topOffset = Drupal.displace ? Drupal.displace.getDisplacement('top') : 0; + var topOffset = Drupal.settings.tableHeaderOffset ? eval(Drupal.settings.tableHeaderOffset + '()') : 0; $('.sticky-header').css('top', topOffset + 'px'); // Save positioning data. var viewHeight = document.documentElement.scrollHeight || document.body.scrollHeight; -- cgit v1.2.3