Explorar el Código

Added css to aligne Panel Configuration tables

Chun-Huai Cheng hace 9 años
padre
commit
6e7777ebc2
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      tripal_fields_layout/tripal_fields_layout.module

+ 3 - 2
tripal_fields_layout/tripal_fields_layout.module

@@ -717,7 +717,8 @@ function theme_tripal_fields_layout_form_configure_panels ($variables) {
   $header = array(t('Field'), t('Table Group'));
 
   // Create a unique id for drupal_add_tabledrag() to find the table object
-  $table_id = 'tripal_panel-configure_panel_table-' . strtolower($element['#title']);
+  $table_id = 'tripal_panel-configure_panel_table-' . strtolower(preg_replace('/\s+/', '_', $element['#title']));
+  $table_class = 'tripal_panel-configure_panel_table';
 
   // Create output
   $table = '';
@@ -725,7 +726,7 @@ function theme_tripal_fields_layout_form_configure_panels ($variables) {
     $table = theme('table', array(
       'header' => $header,
       'rows' => $rows,
-      'attributes' => array('id' => $table_id),
+      'attributes' => array('id' => $table_id, 'class' => array($table_class)),
     ));
   }