While filtering in Library there is JS error:

Uncaught TypeError: Object function ( selector, context ) {
		// The jQuery object is actually just the init constructor 'enhanced'
		return new jQuery.fn.init( selector, context, rootjQuery );
	} has no method 'deparam'

So missing deparam method is the key.

My solution is adding the library in hook_page_alter():

function mymodule_page_alter(&$page) {
	if (isset($_GET['render']) && $_GET['render'] == 'media-popup') {
  		drupal_add_js('/misc/jquery.ba-bbq.js');
	}
}

Comments

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

I don't see any calls to 'deparam' in Media and the only instance I see in Views is in views-list.js which is only used on the admin/structure/views page. I'm not sure where exactly this is coming from?

devin carlson’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I also haven't been able to duplicate the error outlined in the origin issue. Feel free to reopen this issue and provide more information if you are still encountering this problem.

denix’s picture

This error is present in the module view_media_browser.