You are here

function _panels_js_files in Panels 5.2

Includes required JavaScript libraries.

1 call to _panels_js_files()
theme_panels_edit_display in includes/display_edit.inc
Theme the form for editing display content.

File

includes/display_edit.inc, line 1664

Code

function _panels_js_files() {

  // while we don't use this directly some of our forms do.
  drupal_add_js('misc/collapse.js');
  drupal_add_js('misc/autocomplete.js');
  drupal_add_js(panels_get_path('js/lib/dimensions.js'));
  drupal_add_js(panels_get_path('js/lib/mc.js'));
  drupal_add_js(panels_get_path('js/lib/form.js'));
  drupal_add_js(array(
    'panelsAjaxURL' => url('panels/ajax', NULL, NULL, TRUE),
  ), 'setting');
  drupal_add_js(panels_get_path('js/display_editor.js'));
  drupal_add_js(panels_get_path('js/checkboxes.js'));
  drupal_add_js(panels_get_path('js/modal_forms.js'));
  drupal_add_css(panels_get_path('css/panels_dnd.css'));
  drupal_add_css(panels_get_path('css/panels_admin.css'));
}