Commit 7f66670a authored by webchick's avatar webchick

Issue #1864944 by Wim Leers: Fixed ajaxPageState does not contain JS files...

Issue #1864944 by Wim Leers: Fixed ajaxPageState does not contain JS files that are in scopes other than 'header'
parent 8e102d2a
...@@ -3827,7 +3827,7 @@ function drupal_get_js($scope = 'header', $javascript = NULL, $skip_alter = FALS ...@@ -3827,7 +3827,7 @@ function drupal_get_js($scope = 'header', $javascript = NULL, $skip_alter = FALS
// Provide the page with information about the individual JavaScript files // Provide the page with information about the individual JavaScript files
// used, information not otherwise available when aggregation is enabled. // used, information not otherwise available when aggregation is enabled.
$setting['ajaxPageState']['js'] = array_fill_keys(array_keys($items), 1); $setting['ajaxPageState']['js'] = array_fill_keys(array_keys($javascript), 1);
unset($setting['ajaxPageState']['js']['settings']); unset($setting['ajaxPageState']['js']['settings']);
// Provide the page with information about the individual CSS files used, // Provide the page with information about the individual CSS files used,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment