GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit ff0d94b2 authored by jplang's avatar jplang

Code cleanup (#11814).

git-svn-id: https://svn.redmine.org/redmine/trunk@10373 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 241e087f
......@@ -1095,9 +1095,11 @@ module ApplicationHelper
unless @calendar_headers_tags_included
@calendar_headers_tags_included = true
content_for :header_tags do
# Monday, Sunday, Saturday
start_of_week = {1 => 1, 7 => 0, 6 => 6}[Setting.start_of_week.to_i] ||
l(:general_first_day_of_week, :default => '1') # use language
start_of_week = Setting.start_of_week
start_of_week = l(:general_first_day_of_week, :default => '1') if start_of_week.blank?
# Redmine uses 1..7 (monday..sunday) in settings and locales
# JQuery uses 0..6 (sunday..saturday), 7 needs to be changed to 0
start_of_week = start_of_week.to_i % 7
tags = javascript_tag(
"var datepickerOptions={dateFormat: 'yy-mm-dd', firstDay: #{start_of_week}, " +
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment