In order for the JS settings to be registered when Advanced CSS/JS Aggregation module is enabled, these modifications are needed inside template.php file within function omega_js_alter(&$javascript).
Original:
$javascript['settings']['data'][] = array(
'omega_breakpoints' => array(
'layouts' => $layouts,
),
'omega' => array(
'activeLayout' => $activeLayout,
'activeTheme' => $theme
)
);
Must be changed to:
drupal_add_js(
array(
'omega_breakpoints' => array(
'layouts' => $layouts,
),
),
'setting'
);
drupal_add_js(
array(
'omega' => array(
'activeLayout' => $activeLayout,
'activeTheme' => $theme,
),
),
'setting'
);
If not, the omega & omega_breakpoints objects are not added to Drupal.Settings if Advagg is enabled. Any idea why this is happening? Thanks.
Comments
Comment #1
W.M. commentedNo code modification is needed to this theme. This issue was solved by a recent comment to Advagg module (currently available under Advagg dev version).
Comment #2
mikeytown2 commentedGoing to close this out. Hopefully the next advagg version will be released soon.