From 6bc4a110e44a3cf37317b198a946b5a3ee01bb09 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 19 Mar 2013 21:53:22 +0000 Subject: [PATCH] JQuery Datepicker popup is missing multiple month/year modifiers (#13260). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11663 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 2 +- public/stylesheets/application.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 5670b2462..12bf00da2 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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") diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 506c1f005..31e56b88e 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -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;}