This avoids that jquery.tablesorter has to add the elements.
Change-Id: Iab7baa641113552720df022cd05d7c4970b4a886
* Output closing </table>
*/
protected function outputTableEnd() {
* Output closing </table>
*/
protected function outputTableEnd() {
- $this->getOutput()->addHTML( Html::closeElement( 'table' ) );
+ $this->getOutput()->addHTML(
+ Html::closeElement( 'tbody' ) .
+ Html::closeElement( 'table' )
+ );
$this->getOutput()->addWikiTextAsInterface(
$this->msg( 'mediastatistics-bytespertype' )
->numParams( $this->totalPerType )
$this->getOutput()->addWikiTextAsInterface(
$this->msg( 'mediastatistics-bytespertype' )
->numParams( $this->totalPerType )
'sortable',
'wikitable'
] ]
'sortable',
'wikitable'
] ]
+ ) .
+ Html::rawElement( 'thead', [], $this->getTableHeaderRow() ) .
+ Html::openElement( 'tbody' )
- $this->getOutput()->addHTML( $this->getTableHeaderRow() );