app/soc/content/js/datetimepicker-090304.js
author Lennard de Rijk <ljvderijk@gmail.com>
Wed, 01 Jul 2009 16:22:35 +0200
changeset 2473 5cf0625dfa73
parent 2025 e44de18a2f5d
child 2800 cd9eed2b787e
permissions -rw-r--r--
Changed the Survey public view to give a preview of the Survey. Also changed the access rights for deleting a Survey because of the possible invalid references problem. Added two TODO's to the _public method. The first one involves enabling the SurveyForm to generate a form without passing along the Logic since it is only used to retrieve the Survey entity which we already have available. The second one involves a brief discussion about the getFields method's functionality and name.

$(function() {
        $('.datetime-pick').datetimepicker();
        $('.date-pick').datetimepicker({
                'pickDateOnly' : true,
                'defaultDate' : new Date('01/01/1974'),
                'timeFormat' : '',
                'yearRange' : '1900:2008'
            });
        });