summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
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;