// because the display does not truly exist, so we'll stick it in the
// head tag. We also do this if we've been told we're in the layout
// editor so that it always gets fresh CSS.
- drupal_add_css($css, 'inline');
+ drupal_add_css($css, array('type' => 'inline', 'preprocess' => FALSE));
}
// Also store the CSS on the display in case the live preview or something
$css = panels_flexible_render_css($renderer);
// For the administrative view, add CSS directly to head.
- drupal_add_css($css, 'inline');
+ drupal_add_css($css, array('type' => 'inline', 'preprocess' => FALSE));
if (empty($display->editing_layout)) {
$output = '<input type="submit" id="panels-flexible-toggle-layout" class="form-submit" value ="' .
if (!empty($form_state['sibling'])) {
$sibling_width = '#panels-dnd-main .' . $renderer->base[$item['type']] . '-' . $form_state['sibling'] . '-width';
- $output[] = ajax_command_html($sibling_width, $settings['items'][$form_state['sibling']]['width']);
+ $output[] = array(
+ 'command' => 'flexible_set_width',
+ 'selector' => $sibling_width,
+ 'width' => $settings['items'][$form_state['sibling']]['width'],
+ );
}
foreach ($css as $selector => $data) {
$output[] = ajax_command_css($selector, $data);