]> source.dussan.org Git - redmine.git/commitdiff
Small datepicker improvements (#13098).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 9 Feb 2013 13:39:57 +0000 (13:39 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 9 Feb 2013 13:39:57 +0000 (13:39 +0000)
Patch by Daniel Felix.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11335 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index 02e9d5dba610ecce5206ec9896cbed47723f11f4..0d33a3089d530f71b1bc87a2c8c7d511883c6d20 100644 (file)
@@ -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")