Umherirrender has uploaded a new change for review.
https://gerrit.wikimedia.org/r/80079
Change subject: Add data-sort-type=number to column on Special:Tags
......................................................................
Add data-sort-type=number to column on Special:Tags
Due to the word "change" within the cell of the hitcounters, the
tablesorter does not detect a number type, but that should be done here.
Forcing this with a data-sort-type attribute
Bug: 51742
Change-Id: I6704e73fdd1f5c2744e18251d8b9ef0f68938841
---
M includes/specials/SpecialTags.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/79/80079/1
diff --git a/includes/specials/SpecialTags.php
b/includes/specials/SpecialTags.php
index b19c6e8..8a9edec 100644
--- a/includes/specials/SpecialTags.php
+++ b/includes/specials/SpecialTags.php
@@ -44,7 +44,7 @@
$html = Xml::tags( 'tr', null, Xml::tags( 'th', null,
$this->msg( 'tags-tag' )->parse() ) .
Xml::tags( 'th', null, $this->msg(
'tags-display-header' )->parse() ) .
Xml::tags( 'th', null, $this->msg(
'tags-description-header' )->parse() ) .
- Xml::tags( 'th', null, $this->msg(
'tags-hitcount-header' )->parse() )
+ Xml::tags( 'th', array( 'data-sort-type' =>
'number' ), $this->msg( 'tags-hitcount-header' )->parse() )
);
$dbr = wfGetDB( DB_SLAVE );
$res = $dbr->select( 'change_tag', array( 'ct_tag', 'hitcount'
=> 'count(*)' ),
--
To view, visit https://gerrit.wikimedia.org/r/80079
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6704e73fdd1f5c2744e18251d8b9ef0f68938841
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits