function panels_modal_js_includes in Panels 6.2
Includes required JavaScript libraries.
3 calls to panels_modal_js_includes()
- panels_common_add_context_js in includes/
common-context.inc - panels_edit_display_form in includes/
display-edit.inc - Form definition for the panels display editor
- panels_edit_layout_settings_form in includes/
display-layout-settings.inc - Form definition for the display layout settings editor.
File
- includes/
ajax.inc, line 12 - Miscellaneous AJAX helper routines
Code
function panels_modal_js_includes($modals = array()) {
$ajax = array(
'panels' => array(
'closeText' => t('Close Window'),
'closeImage' => theme('image', panels_get_path('images/icon-delete.png'), t('Close window'), t('Close window')),
'throbber' => theme('image', panels_get_path('images/throbber.gif'), t('Loading...'), t('Loading')),
),
);
if ($modals) {
$ajax['panels']['modals'] = $modals;
}
drupal_add_js(panels_get_path('js/panels-base.js'));
drupal_add_js($ajax, 'setting');
drupal_add_js(panels_get_path('js/lib/dimensions.js'));
drupal_add_js(panels_get_path('js/lib/mc.js'));
drupal_add_js('misc/jquery.form.js');
drupal_add_js('misc/autocomplete.js');
drupal_add_js('misc/collapse.js');
drupal_add_js(panels_get_path('js/modal_forms.js'));
drupal_add_js(panels_get_path('js/checkboxes.js'));
}