diff --git a/uc_stock/uc_stock.admin.inc b/uc_stock/uc_stock.admin.inc index 95a682b6..f02e51b8 100644 --- a/uc_stock/uc_stock.admin.inc +++ b/uc_stock/uc_stock.admin.inc @@ -240,6 +240,9 @@ function uc_stock_edit_form($form, &$form_state, $node) { $form['stock'][$id]['active'] = array( '#type' => 'checkbox', '#default_value' => !empty($stock['active']) ? $stock['active'] : 0, + '#attributes' => array( + 'data-tableselect-id' => 'uc_stock_edit_form', + ), ); // Sanitized version of the SKU for display. diff --git a/uc_stock/uc_stock.css b/uc_stock/uc_stock.css new file mode 100644 index 00000000..16270015 --- /dev/null +++ b/uc_stock/uc_stock.css @@ -0,0 +1,15 @@ +/** + * @file + * Styles for uc_stock module. + */ + + +/* Edit form */ +.uc-stock-edit-form th.select-all { + white-space: nowrap; +} + +/* Options sub-tab of product */ +.uc-object-options-form th.select-all { + white-space: nowrap; +} diff --git a/uc_stock/uc_stock.info b/uc_stock/uc_stock.info index 7147a88b..b0f8d1ee 100644 --- a/uc_stock/uc_stock.info +++ b/uc_stock/uc_stock.info @@ -5,6 +5,6 @@ package = Ubercart - extra backdrop = 1.x type = module -; Test cases -; Views handlers configure = admin/store/settings/stock + +stylesheets[all][] = uc_stock.css