| Index: trunk/extensions/Contest/Contest.i18n.php |
| — | — | @@ -160,6 +160,7 @@ |
| 161 | 161 | 'contest-contest-reminder-page' => 'The content for the reminder e-mail comes from [[$1|this page]].', |
| 162 | 162 | 'contest-contest-send-reminder' => 'Send reminder', |
| 163 | 163 | 'contest-contest-go' => 'Go', |
| | 164 | + 'contest-contest-clear' => 'Clear filters', |
| 164 | 165 | 'contest-contest-showonly' => 'Filter contestants by', |
| 165 | 166 | 'contest-contest-yes' => 'Yes', |
| 166 | 167 | 'contest-contest-no' => 'No', |
| — | — | @@ -324,6 +325,7 @@ |
| 325 | 326 | 'contest-contest-send-reminder' => 'Send reminder button text', |
| 326 | 327 | 'contest-contest-go' => 'Submission button text for filter form. |
| 327 | 328 | {{Identical|Go}}', |
| | 329 | + 'contest-contest-clear' => 'Clear button text for filter form.', |
| 328 | 330 | 'contest-contest-showonly' => 'Header text for filter form', |
| 329 | 331 | 'contest-contest-yes' => 'Option in a dropdown menu. |
| 330 | 332 | {{Identical|Yes}}', |
| Index: trunk/extensions/Contest/specials/SpecialContest.php |
| — | — | @@ -330,6 +330,7 @@ |
| 331 | 331 | $noneSome |
| 332 | 332 | ) . |
| 333 | 333 | '<input type="submit" value="' . wfMsgHtml( 'contest-contest-go' ) . '">' . |
| | 334 | + ' <button class="contest-pager-clear">' . wfMsgHtml( 'contest-contest-clear' ) . '</button>' . |
| 334 | 335 | '</form>' . |
| 335 | 336 | '</fieldset>' |
| 336 | 337 | ); |
| Index: trunk/extensions/Contest/resources/contest.special.contest.js |
| — | — | @@ -80,6 +80,13 @@ |
| 81 | 81 | $dialog.append( $( '#reminder-content' ).html() ); |
| 82 | 82 | }; |
| 83 | 83 | |
| | 84 | + $( '.contest-pager-clear' ).click( function() { |
| | 85 | + var $form = $( this ).closest( 'form' ); |
| | 86 | + $form.find( 'select' ).val( '' ); |
| | 87 | + $form.submit(); |
| | 88 | + return false; |
| | 89 | + } ); |
| | 90 | + |
| 84 | 91 | $( '#send-reminder' ).button().click( this.showReminderDialog ); |
| 85 | 92 | |
| 86 | 93 | } ); })( window.jQuery, window.mediaWiki ); |