Awight has uploaded a new change for review.
https://gerrit.wikimedia.org/r/314505
Change subject: WIP Trying to restore damaged UI tableselect
......................................................................
WIP Trying to restore damaged UI tableselect
Bug: T142058
Change-Id: Ic6f3d21686709c4857c14b5df3de45d80c3d8bb4
---
M sites/all/modules/wmf_common/wmf_common.module
1 file changed, 23 insertions(+), 18 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm
refs/changes/05/314505/1
diff --git a/sites/all/modules/wmf_common/wmf_common.module
b/sites/all/modules/wmf_common/wmf_common.module
index 6d00326..5ea322c 100644
--- a/sites/all/modules/wmf_common/wmf_common.module
+++ b/sites/all/modules/wmf_common/wmf_common.module
@@ -443,25 +443,30 @@
// query parameters to append to the GET string
$query_params = array( 'queue' => $queue, 'gateway' => $gateway );
- $table_html = theme_table(
+ $table_html = theme_tableselect(
array(
- // FIXME: Are these translated implicitly or shall we wrap in t()?
- 'header' => array(
- 'ID',
- 'Original Date',
- 'Damaged Date',
- 'Original Queue',
- 'Gateway',
- 'Order ID',
- 'Gateway txn ID',
- 'Error',
- ),
- 'rows' => $rows,
- 'empty' => 'Nothing in the damaged message table! Be very
suspicious...',
- 'attributes' => array(),
- 'caption' => t( 'Damaged messages' ),
- 'colgroups' => array(),
- 'sticky' => true,
+ 'element' => array(
+ // FIXME: Are these translated implicitly or shall we
wrap in t()?
+ '#header' => array(
+ 'id' => t( 'ID' ),
+ 'original_date' => t( 'Original Date' ),
+ 'damaged_date' => t( 'Damaged Date' ),
+ 'original_queue' => t( 'Original Queue' ),
+ 'gateway' => t( 'Gateway' ),
+ 'order_id' => t( 'Order ID' ),
+ 'gateway_txn_id' => t( 'Gateway Transaction ID' ),
+ 'error' => t( 'Error' ),
+ ),
+ '#options' => $rows,
+ '#attributes' => array(),
+ '#empty' => 'Nothing in the damaged message table! Be
very suspicious...',
+ '#js_select' => true,
+ /*
+ 'caption' => t( 'Damaged messages' ),
+ 'colgroups' => array(),
+ 'sticky' => true,
+ */
+ ),
)
).theme( 'pager', array(
'parameters' => $query_params,
--
To view, visit https://gerrit.wikimedia.org/r/314505
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic6f3d21686709c4857c14b5df3de45d80c3d8bb4
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Awight <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits