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.
If the toolbar doesn't have the IE shadow filter applied, or the toolbar is not in the DOM for some reason we get the following error:
$("#toolbar").css("filter") is undefined
Comment | File | Size | Author |
---|---|---|---|
#2 | toolbar_js_v2.patch | 1.01 KB | aspilicious |
toolbar-filters.patch | 1.09 KB | casey | |
Comments
Comment #2
aspilicious CreditAttribution: aspilicious commentedHere is a reroll
Comment #3
aspilicious CreditAttribution: aspilicious commentedComment #4
casey CreditAttribution: casey commentedThanks (I am having problems with my IDE and was trying out another one).
Comment #5
casey CreditAttribution: casey commented#2: toolbar_js_v2.patch queued for re-testing.
Comment #6
thedavidmeister CreditAttribution: thedavidmeister commentedPatch no longer applies.
The issue summary states that we want to avoid errors if #toolbar is not in the DOM for some reason, but the patch in #2 doesn't seem to address that, as it checks $toolbar[0].filters; $toolbar.length might be more appropriate here.
See http://jsfiddle.net/uA9zE/ for an example of the error I'd expect to see if #2 was re-rolled.
This code doesn't seem to exist any more in D8, so I'm not sure if it's a problem any more there.
Review bonus #2094585: [policy, no patch] Core review bonus for #1898420: image.module - Convert theme_ functions to Twig.