diff --git a/includes/theme.inc b/includes/theme.inc index ce6f2da..95137eb 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -311,6 +311,8 @@ function bootstrap_js_alter(&$js) { if (module_exists('views') && !empty($js[drupal_get_path('module', 'views') . '/js/ajax_view.js'])) { $ajax_view = $theme_path . '/js/ajax_view.js'; $js[$ajax_view] = drupal_js_defaults($ajax_view); + // Need to fix the group this belongs to so it loads after the views module. + $js[$ajax_view]['group'] = JS_THEME; } $js = array_diff_key($js, $excludes);