summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-05-23 18:23:32 +0000
committerDries Buytaert <dries@buytaert.net>2010-05-23 18:23:32 +0000
commit5d4fa6f72511d4a3948d5527f9202d6cd2aa137f (patch)
tree26a6315935314e47760ac7e221f6b22e2defd5e9 /misc
parent8ce167452b30e5cfe10a4e39763425e1aac1a96f (diff)
downloadbrdo-5d4fa6f72511d4a3948d5527f9202d6cd2aa137f.tar.gz
brdo-5d4fa6f72511d4a3948d5527f9202d6cd2aa137f.tar.bz2
- Rollback of #787940.
Diffstat (limited to 'misc')
-rw-r--r--misc/drupal.js18
-rw-r--r--misc/tableheader.js2
2 files changed, 1 insertions, 19 deletions
diff --git a/misc/drupal.js b/misc/drupal.js
index 9d7ec8089..d6f7597c3 100644
--- a/misc/drupal.js
+++ b/misc/drupal.js
@@ -300,24 +300,6 @@ Drupal.getSelection = function (element) {
};
/**
- * 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 = $('<div style="position:fixed; top:10px" />').appendTo(document.body);
- this._positionFixedSupported = el[0].offsetTop === 10;
- el.remove();
- }
-
- return this._positionFixedSupported;
-};
-
-/**
* Build an error message from an AJAX response.
*/
Drupal.ajaxError = function (xmlhttp, uri) {
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;