We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27519
    • 275 Posts
    I tried to configure a date field to show a date picker starting on Saturdays.

    According to the API docs of ExtJs, the config param startDay allows one to set the starting day of the week (Sunday = 0 etc.).

    However after setting startDay to 6 (Saturday), I just got the same date picker starting on Sunday.

    After inspecting the sources of the DateField class I noticed that in the onTriggerClick method - the method that initialises the date picker instance, which method is for unknown reasons not documented in the API of DateField - that startingDay is not passed to the date picker instance.

    Confusing! Possibly a bug?

    I fixed this by subclassing DateField and properly passing the config options to the picker. is this something that should find its way into MODx as well?
      MODx Revolution / MAMP / OS X