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")