app/soc/content/js/datetimepicker.js
author Lennard de Rijk <ljvderijk@gmail.com>
Sun, 22 Feb 2009 21:00:25 +0000
changeset 1468 fa794d29cbae
parent 1451 ef134d062b83
permissions -rw-r--r--
Base view list method can now use kwargs. This is needed for listing your own student proposals. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1451
ef134d062b83 Add generic datepicker support
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
     1
$(function() {
ef134d062b83 Add generic datepicker support
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
     2
        $('.datetime-pick').datetimepicker();
ef134d062b83 Add generic datepicker support
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
     3
        $('.date-pick').datetimepicker({
ef134d062b83 Add generic datepicker support
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
     4
                'pickDateOnly' : true,
ef134d062b83 Add generic datepicker support
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
     5
                'timeFormat' : '',
ef134d062b83 Add generic datepicker support
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
     6
                'yearRange' : '1900:2008',
ef134d062b83 Add generic datepicker support
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
     7
            });
ef134d062b83 Add generic datepicker support
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
     8
        });
ef134d062b83 Add generic datepicker support
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
     9