]> source.dussan.org Git - redmine.git/commitdiff
JQuery Datepicker popup is missing multiple month/year modifiers (#13260).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 19 Mar 2013 21:53:22 +0000 (21:53 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 19 Mar 2013 21:53:22 +0000 (21:53 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11663 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb
public/stylesheets/application.css

index 5670b2462c0218ceb473f6edddbe7f6c488d655b..12bf00da2c7c97b2533d9125f3c69fe70340ce79 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, showWeek: true, showOtherMonths: true, selectOtherMonths: true};")
+                     "', showButtonPanel: true, showWeek: true, showOtherMonths: true, selectOtherMonths: true, changeMonth: true, changeYear: 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") 
index 506c1f0059422c5d119a425c80eac33d9ccf665e..31e56b88ed1e7c83b5e604491fc5721b87233211 100644 (file)
@@ -1037,6 +1037,10 @@ h2 img { vertical-align:middle; }
 
 .hascontextmenu { cursor: context-menu; }
 
+/* Custom JQuery styles */
+.ui-datepicker-title select {width:70px !important; margin-top:-2px !important; margin-right:4px !important;}
+
+
 /************* CodeRay styles *************/
 .syntaxhl div {display: inline;}
 .syntaxhl .line-numbers {padding: 2px 4px 2px 4px; background-color: #eee; margin:0px 5px 0px 0px;}