@@ -1095,8 +1095,12 module ApplicationHelper | |||
|
1095 | 1095 | unless @calendar_headers_tags_included |
|
1096 | 1096 | @calendar_headers_tags_included = true |
|
1097 | 1097 | content_for :header_tags do |
|
1098 | # Monday, Sunday, Saturday | |
|
1099 | start_of_week = {1 => 1, 7 => 0, 6 => 6}[Setting.start_of_week.to_i] || | |
|
1100 | l(:general_first_day_of_week, :default => '1') # use language | |
|
1101 | ||
|
1098 | 1102 | tags = javascript_tag( |
|
1099 | "var datepickerOptions={dateFormat: 'yy-mm-dd', " + | |
|
1103 | "var datepickerOptions={dateFormat: 'yy-mm-dd', firstDay: #{start_of_week}, " + | |
|
1100 | 1104 | "showOn: 'button', buttonImageOnly: true, buttonImage: '" + |
|
1101 | 1105 | path_to_image('/images/calendar.png') + |
|
1102 | 1106 | "', showButtonPanel: true};") |
General Comments 0
You need to be logged in to leave comments.
Login now