Commit 61705d9a authored by catch's avatar catch

Issue #1439462 by nod_: Drop our custom $.support.positionFixed and use...

Issue #1439462 by nod_: Drop our custom $.support.positionFixed and use jQuery's $.support.fixedPosition.
parent f1d90a0c
......@@ -373,20 +373,6 @@ $('html').addClass('js');
// 'js enabled' cookie.
document.cookie = 'has_js=1; path=/';
/**
* 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);
......
......@@ -5,7 +5,7 @@
*/
Drupal.behaviors.tableHeader = {
attach: function (context, settings) {
if (!$.support.positionFixed) {
if (!$.support.fixedPosition) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment