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.
I'm seeing this error in the browser console, after uploading an image, or when editing a node that already has an image.
Also, when editing, the crosshair is always at (0,0): it doesn't locate on the saved coordinates.
Comment | File | Size | Author |
---|---|---|---|
#6 | drupalbehaviorerror-2537110-6.patch | 1004 bytes | bleen |
#1 | focal_point-2537110.patch | 436 bytes | jonhattan |
Comments
Comment #1
jonhattanThis fixes the error message, but the crosshair is still at (0,0)
Comment #2
bleen CreditAttribution: bleen commentedWhen try on simplytest.me the crosshair is always in the correct place. Are you sure you don't have some other JS errors?
Comment #3
jonhattanI'm sorry, effectively the crosshair is in place with this patch applied.
Comment #4
bleen CreditAttribution: bleen commentedI have not been able to reproduce the JS error reported in the original post. A quick chat with @jonhattan says:
Comment #5
jonhattanTo clarify further:
I'm getting the
DrupalBehaviorError: attach ; focalPointIndicator: event is not defined
error only with Iceweasel 39.0 on Debian 8 (iceweasel is debian's relabel of firefox). The patch in #1 fixes it.I'm not getting the error with Chromium Version 43.0.2357.65 Built on 8.0, running on Debian 8.1 (64-bit). It works with and without the patch in #1.
Comment #6
bleen CreditAttribution: bleen commentedCan you test this instead...
I'm told its considered better practice to use the "on" method
Comment #7
jonhattanIt works
Comment #8
bleen CreditAttribution: bleen commented