Bugzilla – Attachment 75168 Details for
Bug 20729
Update style of datepickers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20729: Update style of datepickers
Bug-20729-Update-style-of-datepickers.patch (text/plain), 2.75 KB, created by
Owen Leonard
on 2018-05-08 16:17:10 UTC
(
hide
)
Description:
Bug 20729: Update style of datepickers
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2018-05-08 16:17:10 UTC
Size:
2.75 KB
patch
obsolete
>From 6e6c0116695ee19044ea7e827acb6c19d626273b Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 8 May 2018 16:07:00 +0000 >Subject: [PATCH] Bug 20729: Update style of datepickers > >This patch updates the styling of form fields which are configured to >use the jQueryUI datepicker widget. Some CSS has been added, and the >default datepicker configuration has been changed. > >To test, apply the patch and clear your cache if necessary. Test pages >which include a datepicker to confirm that they look correct and work >correctly. Some examples: > > - Circulation -> Check out -> Specify due date > - Patrons -> Add patron -> Date of birth, registration date, expiry > date fields > - Serials -> Search subscriptions -> Search results page sidebar > - Tools -> News -> Add news item > >And confirm that this change hasn't adversely affected the calendar >tool: > > - Tools -> Calendar >--- > koha-tmpl/intranet-tmpl/prog/css/staff-global.css | 27 ++++++++++++++++++++++ > .../intranet-tmpl/prog/en/includes/calendar.inc | 4 +--- > 2 files changed, 28 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/css/staff-global.css >index c68bff6..813bf38 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css >+++ b/koha-tmpl/intranet-tmpl/prog/css/staff-global.css >@@ -3232,7 +3232,34 @@ ul.buttons-list li a:hover.circ-button { > > /* ==== MODULE LINKS - End ==== */ > >+input.hasDatepicker { >+ background-image: url("../img/famfamfam/silk/calendar.png"); >+ background-repeat: no-repeat; >+ background-position-x: right; >+ background-position-y: center; >+ border-width: 1px; >+ border-style: inset outset outset inset; >+ padding-right: 18px; >+} >+ >+span.name { >+ font-weight: bold; >+ font-style: italic; >+} > >+.result-biblio-itemtype { >+ float: right; >+ padding: .5em; >+ margin: .5em; >+ font-size: 85%; >+ text-align: center; >+} >+ >+.result-biblio-itemtype img { >+ display: block; >+ margin: auto; >+ margin-bottom: 2px; >+} > > @media (min-width: 200px) { > .navbar-nav > li { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >index f13a1fa..bf07d66 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >@@ -128,11 +128,9 @@ jQuery(function($){ > $(document).ready(function(){ > > $.datepicker.setDefaults({ >- showOn: "both", >+ showOn: "focus", > changeMonth: true, > changeYear: true, >- buttonImage: '[% interface %]/[% theme %]/img/famfamfam/silk/calendar.png', >- buttonImageOnly: true, > showButtonPanel: true, > showOtherMonths: true, > selectOtherMonths: true, >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20729
:
75166
|
75167
|
75168
|
75182
|
75232
|
80368
|
83478
|
83830
|
83851