summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-05 17:22:08 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-05 17:22:08 +0000
commit99913e80f08e9270cc6fb9db1f67e308ef9d56c6 (patch)
treed3f8325db348b58d28f6db4ebaaa99e3a959c6da /app/helpers
parent48ac467981dcba6cca2423affd27ad67bcb84204 (diff)
downloadredmine-99913e80f08e9270cc6fb9db1f67e308ef9d56c6.tar.gz
redmine-99913e80f08e9270cc6fb9db1f67e308ef9d56c6.zip
show JQuery datepicker today button
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10291 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 4923ccb31..ad81f79a8 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1093,7 +1093,11 @@ module ApplicationHelper
unless @calendar_headers_tags_included
@calendar_headers_tags_included = true
content_for :header_tags do
- tags = javascript_tag("var datepickerOptions={dateFormat: 'yy-mm-dd', showOn: 'button', buttonImageOnly: true, buttonImage: '" + path_to_image('/images/calendar.png') + "'};")
+ tags = javascript_tag(
+ "var datepickerOptions={dateFormat: 'yy-mm-dd', " +
+ "showOn: 'button', buttonImageOnly: true, buttonImage: '" +
+ path_to_image('/images/calendar.png') +
+ "', showButtonPanel: 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")