Drupal : how to add a JavaScript file in Ctools modal popup -



Drupal : how to add a JavaScript file in Ctools modal popup -

how add together javascript file in ctools modal popup ?

i added js file (datatables.js) in .tpl.php file not work?

the popup not observe file?

drupal_add_js(drupal_get_path('module', 'my_module') . '/jquery.datatables.min.js');

we're using document.ready , ajaxcomplete:

$(document).ready(function () { drupal.behaviors.namespace.functionname(); });

and

$(document).ajaxcomplete(function () { drupal.behaviors.namespace.functionname(); });

clearly not dry solution, solves problem now.

javascript drupal-7 datatables drupal-ctools

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -