/[drupal]/contributions/modules/holidays/holidays_demo.theme.js
ViewVC logotype

Contents of /contributions/modules/holidays/holidays_demo.theme.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Sun Jan 6 12:03:33 2008 UTC (22 months, 3 weeks ago) by mooffie
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +8 -14 lines
File MIME type: text/javascript
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