Bugzilla – Attachment 83851 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.98 KB, created by
Katrin Fischer
on 2019-01-13 20:47:17 UTC
(
hide
)
Description:
Bug 20729: Update style of datepickers
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-01-13 20:47:17 UTC
Size:
2.98 KB
patch
obsolete
>From dfdb22ccdf124954244b1687b9216055db2af6a6 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 10 Oct 2018 18:16:10 +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, rebuild the staff client CSS file, 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 > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >Signed-off-by: Pierre-Marc Thibault <pierre-marc.thibault@inLibro.com> >--- > koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 10 ++++++++++ > koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc | 8 ++------ > 2 files changed, 12 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >index ebe2ca7c9f..9535fe0219 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >@@ -485,6 +485,16 @@ input { > border-color: #900; > } > >+ &.hasDatepicker { >+ background-image: url("../img/famfamfam/silk/calendar.png"); >+ background-position-x: right; >+ background-position-y: center; >+ background-repeat: no-repeat; >+ border-style: inset outset outset inset; >+ border-width: 1px; >+ padding-right: 18px; >+ } >+ > &.submit { > @include default-button; > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >index 1d06bca2d2..1a17442689 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >@@ -1,6 +1,5 @@ > [% USE Koha %] >-<script type="text/javascript"> >-//<![CDATA[ >+<script> > > var debug = "[% debug | html %]"; > var dformat = "[% dateformat | html %]"; >@@ -161,11 +160,9 @@ function(value, element, params) { > $(document).ready(function(){ > > $.datepicker.setDefaults({ >- showOn: "both", >+ showOn: "focus", > changeMonth: true, > changeYear: true, >- buttonImage: '[% interface | html %]/[% theme | html %]/img/famfamfam/silk/calendar.png', >- buttonImageOnly: true, > showButtonPanel: true, > showOtherMonths: true, > selectOtherMonths: true, >@@ -203,5 +200,4 @@ $("#dateofbirth").datepicker({ > if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");} > }); > }); >-//]]> > </script> >-- >2.11.0
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