diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-07-28 01:38:28 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-07-28 01:38:28 +0000 |
commit | 926a26b6d56da73381ff789dd61b43c9ab663ffd (patch) | |
tree | 1d50994820856f2578630142c7898429f99fe32b /misc/drupal.js | |
parent | c7b77049c2ff247d206aa85cceed16e36491f6e0 (diff) | |
download | brdo-926a26b6d56da73381ff789dd61b43c9ab663ffd.tar.gz brdo-926a26b6d56da73381ff789dd61b43c9ab663ffd.tar.bz2 |
- Patch #787670 by casey, Kiphaas7: clean up tableheader.js.
Diffstat (limited to 'misc/drupal.js')
-rw-r--r-- | misc/drupal.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/misc/drupal.js b/misc/drupal.js index 79f9f755c..9f4327cf0 100644 --- a/misc/drupal.js +++ b/misc/drupal.js @@ -331,7 +331,21 @@ $('html').addClass('js'); // 'js enabled' cookie. document.cookie = 'has_js=1; path=/'; -// Attach all behaviors. +/** + * Additions to jQuery.support. + */ +$(function () { + /** + * Boolean indicating whether or not position:fixed is supported. + */ + if (jQuery.support.positionFixed === undefined) { + var el = $('<div style="position:fixed; top:10px" />').appendTo(document.body); + jQuery.support.positionFixed = el[0].offsetTop === 10; + el.remove(); + } +}); + +//Attach all behaviors. $(function () { Drupal.attachBehaviors(document, Drupal.settings); }); |