module_load_include('inc', 'media', 'includes/media.browser');
media_attach_browser_js($node->content['add_media_link']);

Is needed to ensure browserUrl property is defined. Without, the file add button is not activated.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

EthanT created an issue. See original summary.

EthanT’s picture

Patch for this issue.

EthanT’s picture

Status: Active » Closed (fixed)