show JQuery datepicker today button
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10291 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
48ac467981
commit
99913e80f0
|
@ -1093,7 +1093,11 @@ module ApplicationHelper
|
||||||
unless @calendar_headers_tags_included
|
unless @calendar_headers_tags_included
|
||||||
@calendar_headers_tags_included = true
|
@calendar_headers_tags_included = true
|
||||||
content_for :header_tags do
|
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)
|
jquery_locale = l('jquery.locale', :default => current_language.to_s)
|
||||||
unless jquery_locale == 'en'
|
unless jquery_locale == 'en'
|
||||||
tags << javascript_include_tag("i18n/jquery.ui.datepicker-#{jquery_locale}.js")
|
tags << javascript_include_tag("i18n/jquery.ui.datepicker-#{jquery_locale}.js")
|
||||||
|
|
Loading…
Reference in New Issue