Browse Source

fix: Set start of the week for date control based on configuration

version-14
Suraj Shetty 3 years ago
parent
commit
9c75336ea0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      frappe/public/js/frappe/form/controls/date.js

+ 1
- 0
frappe/public/js/frappe/form/controls/date.js View File

@@ -62,6 +62,7 @@ frappe.ui.form.ControlDate = class ControlDate extends frappe.ui.form.ControlDat
dateFormat: date_format,
startDate: this.get_start_date(),
keyboardNav: false,
firstDay: frappe.datetime.get_week_starts_on_index(),
onSelect: () => {
this.$input.trigger('change');
},


Loading…
Cancel
Save