Closed (cannot reproduce)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
Media Browser
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Mar 2012 at 14:33 UTC
Updated:
18 Jun 2013 at 12:53 UTC
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
Comment #1
dave reidI 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?
Comment #2
devin carlson commentedI 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.
Comment #3
denix commentedThis error is present in the module view_media_browser.