Index: trunk/extensions/Survey/specials/SpecialSurveys.php |
— | — | @@ -122,18 +122,20 @@ |
123 | 123 | |
124 | 124 | $out->addHTML( Xml::openElement( |
125 | 125 | 'table', |
126 | | - array( 'class' => 'wikitable', 'style' => 'width:400px' ) |
| 126 | + array( 'class' => 'wikitable sortable', 'style' => 'width:400px' ) |
127 | 127 | ) ); |
128 | 128 | |
129 | 129 | $out->addHTML( |
130 | | - '<tr>' . |
| 130 | + '<thead><tr>' . |
131 | 131 | Html::element( 'th', array(), wfMsg( 'surveys-special-name' ) ) . |
132 | 132 | Html::element( 'th', array(), wfMsg( 'surveys-special-status' ) ) . |
133 | | - Html::element( 'th', array(), wfMsg( 'surveys-special-edit' ) ) . |
134 | | - Html::element( 'th', array(), wfMsg( 'surveys-special-delete' ) ) . |
135 | | - '</tr>' |
| 133 | + Html::element( 'th', array( 'class' => 'unsortable' ), wfMsg( 'surveys-special-edit' ) ) . |
| 134 | + Html::element( 'th', array( 'class' => 'unsortable' ), wfMsg( 'surveys-special-delete' ) ) . |
| 135 | + '</tr></thead>' |
136 | 136 | ); |
137 | 137 | |
| 138 | + $out->addHTML( '<tbody>' ); |
| 139 | + |
138 | 140 | foreach ( $surveys as $survey ) { |
139 | 141 | $out->addHTML( |
140 | 142 | '<tr>' . |
— | — | @@ -172,6 +174,7 @@ |
173 | 175 | ); |
174 | 176 | } |
175 | 177 | |
| 178 | + $out->addHTML( '</tbody>' ); |
176 | 179 | $out->addHTML( '</table>' ); |
177 | 180 | } |
178 | 181 | |