Patch #13098 » small_datepicker_improvements.diff
| app/helpers/application_helper.rb | ||
|---|---|---|
|
"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")
|
||