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.
When using the jquery_update module to support multiple/separate jQuery versions, there is also the option of loading jQuery from a CDN (Google, MS, jQuery.com). If using one of these options, the focal point widget on the node form breaks. The cursor is shown at 0,0 but it cannot be dragged. This is right after an image is uploaded to the field.
The console shows this stack trace:
Uncaught TypeError: undefined is not a function focal_point.js:49
(anonymous function) focal_point.js:49
jQuery.extend.each jquery.js:611
jQuery.fn.jQuery.each jquery.js:241
$.fn.once jquery.once.js?v=1.2:55
Drupal.behaviors.focalPointIndicator.attac focal_point.js:16
(anonymous function) drupal.js?na7ozq:76
jQuery.extend.each jquery.js:605
Drupal.attachBehaviors drupal.js?na7ozq:74
Drupal.ajax.commands.insert ajax.js?v=7.31:542
Drupal.ajax.success ajax.js?v=7.31:400
ajax.options.success ajax.js?v=7.31:164
options.success jquery.form.js?v=2.69:150
cb jquery.form.js?v=2.69:401
Disabling the CDN feature of jquery_update fixes this, so it must be something with the order the scripts are loaded in for the CDN version.
Comments
Comment #1
bleen CreditAttribution: bleen commentedI confirmed this ... taking a look
Comment #2
bleen CreditAttribution: bleen commentedI think this is a bug in jquery_update ... see #2330403: jquery ui scripts (from CDN) are not added during a form rebuild caused by an AJAX event
Comment #3
bleen CreditAttribution: bleen commentedI confirmed today with ericduran (maintainer of jquery_update) that this is an issue with query update... so I'm closing this