Parent Directory
|
Revision Log
|
Revision Graph
Some documentation added.
| 1 | // $Id$ |
| 2 | |
| 3 | /* |
| 4 | * @file |
| 5 | * Make the year and month dropdowns automatically submit the form. |
| 6 | */ |
| 7 | |
| 8 | $(function() { |
| 9 | |
| 10 | $('#month-selector').change(function() { |
| 11 | var form = $('#holidays-calendar-selection-form')[0]; |
| 12 | form.elements['month'].value = $(this).val(); |
| 13 | form.submit(); |
| 14 | }); |
| 15 | |
| 16 | $('#year-selector').change(function() { |
| 17 | var form = $('#holidays-calendar-selection-form')[0]; |
| 18 | form.elements['year'].value = $(this).val(); |
| 19 | form.submit(); |
| 20 | }); |
| 21 | |
| 22 | }); |
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |