Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
document.body
should be
document.getElementsByTagName('body')[0]
Comment | File | Size | Author |
---|---|---|---|
#2 | patch_82.txt | 1.01 KB | casey |
Comments
Comment #1
RobRoy CreditAttribution: RobRoy commentedIt would be helpful to submit a patch according to http://drupal.org/diffandpatch. Thanks.
Comment #2
casey CreditAttribution: casey commentedOk here it is
Comment #3
ChrisKennedy CreditAttribution: ChrisKennedy commentedHonestly, it would probably be best to convert that entire function to use jQuery.
Comment #4
Steven CreditAttribution: Steven commentedWe can see about jquery methods like height() for 6.0, for now we should just fix it. Let's use $('body')[0] though, it's shorter.
Comment #5
Steven CreditAttribution: Steven commentedFixed with jQuery.
Comment #6
(not verified) CreditAttribution: commented