How to change the options of the editor jquery datepicker?

How to change the options of the editor jquery datepicker?

bensdbbensdb Posts: 30Questions: 4Answers: 0

Hello,

Normally when initiating the jquery datepicker it's possible to change it's options. I'm wondering if this is possible with the editor plugin's use of the jquery datepicker, and if so, how I would implement this?

I would like to make it show the year, and month dropdowns, and specify the date range of the year dropdown to show the last 100 years, in order to input people's Date of Birth. The js to implement these options would normally be something like:

function InitDatePickers() {
        $(".datepicker").datepicker({
            changeMonth: true,
            changeYear: true,
            showButtonPanel: true,
             yearRange: "-100:+0"
        });
    }

Any ideas how to do this with editor?

Answers

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin

    In Editor 1.3.0- there isn't actually an option for that. However, I'm going to be releasing Editor 1.3.1 later today with this ability - a new opts option for that field type.

    Thanks for the suggestion!

    Regards,
    Allan

  • bensdbbensdb Posts: 30Questions: 4Answers: 0

    Great!

This discussion has been closed.