Skip to content

Commit

Permalink
Move config
Browse files Browse the repository at this point in the history
  • Loading branch information
davegudge committed Aug 27, 2024
1 parent f4f2cb6 commit ec60b43
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion app/assets/javascripts/recurring_select_dialog.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,36 @@ class RecurringSelectDialog {
}
}

RecurringSelectDialog.config = defaultConfig
RecurringSelectDialog.config = {
options: {
monthly: {
show_week: [true, true, true, true, false, false]
}
},
texts: {
locale_iso_code: "en",
repeat: "Repeat",
last_day: "Last Day",
frequency: "Frequency",
daily: "Daily",
weekly: "Weekly",
monthly: "Monthly",
yearly: "Yearly",
every: "Every",
days: "day(s)",
weeks_on: "week(s) on",
months: "month(s)",
years: "year(s)",
day_of_month: "Day of month",
day_of_week: "Day of week",
cancel: "Cancel",
ok: "OK",
summary: "Summary",
first_day_of_week: 0,
days_first_letter: ["S", "M", "T", "W", "T", "F", "S" ],
order: ["1st", "2nd", "3rd", "4th", "5th", "Last"],
show_week: [true, true, true, true, false, false]
}
}

window.RecurringSelectDialog = RecurringSelectDialog

0 comments on commit ec60b43

Please sign in to comment.