After selecting media for a field using the media browser and updating the 'fid' field, no javascript 'change' event is triggered.

At first glance, I thought this was similar to #979844: Add event handler when media is selected for a field so that other modules might intervene, but I think that ticket is about creating a custom event in the media browser, whereas this one is about triggering a standard event on a content editing form.

Possible patch attached.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid’s picture

Status: Active » Needs review
Dave Reid’s picture

Status: Needs review » Closed (duplicate)

I'm going to merge this in with #1213252: Allow media file's fields to be edited in a modal or after upload in the media widget since it makes sense to do so there.