From: Jean-Philippe Lang Date: Sat, 9 Feb 2013 13:39:57 +0000 (+0000) Subject: Small datepicker improvements (#13098). X-Git-Tag: 2.3.0~169 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1fe29c8a0c037a3d7bf1a83e1beb1261367fe6ac;p=redmine.git Small datepicker improvements (#13098). Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11335 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 02e9d5dba..0d33a3089 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1076,7 +1076,7 @@ module ApplicationHelper "var datepickerOptions={dateFormat: 'yy-mm-dd', firstDay: #{start_of_week}, " + "showOn: 'button', buttonImageOnly: true, buttonImage: '" + path_to_image('/images/calendar.png') + - "', showButtonPanel: true};") + "', showButtonPanel: true, showWeek: true, showOtherMonths: true, selectOtherMonths: true};") jquery_locale = l('jquery.locale', :default => current_language.to_s) unless jquery_locale == 'en' tags << javascript_include_tag("i18n/jquery.ui.datepicker-#{jquery_locale}.js")