From 67124ab7cf8366a65d04eeee01f31bf26fdaed27 Mon Sep 17 00:00:00 2001 From: Joy Nelson Date: Tue, 21 Jan 2020 19:47:45 +0000 Subject: [PATCH] Revert "Bug 24181: Make our datepicker inputs sexy" This reverts commit 8dab309040d2f275a301f0312239a9f272be7284. Signed-off-by: Joy Nelson --- koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 10 ++++++++++ koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc | 5 +---- 2 files changed, 11 insertions(+), 4 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 6bc5d8685d..f118d25063 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -385,6 +385,16 @@ input { } } + &.hasDatepicker { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAT0lEQVQ4jWNgoAZYd/LVf3IwigGkAuwGLE4hDg9eA4il8RqADVdtLYVjZLVEuwDZAKJcgKxh+zkyXIBuI8lhgG4jOqZdLJACMAygKDNRAgBj9qOB+rWnhAAAAABJRU5ErkJggg=="); + 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 1cd41e2961..e6f12ddce0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc @@ -160,10 +160,7 @@ function(value, element, params) { $(document).ready(function(){ $.datepicker.setDefaults({ - showOn: "both", - buttonImage: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAT0lEQVQ4jWNgoAZYd/LVf3IwigGkAuwGLE4hDg9eA4il8RqADVdtLYVjZLVEuwDZAKJcgKxh+zkyXIBuI8lhgG4jOqZdLJACMAygKDNRAgBj9qOB+rWnhAAAAABJRU5ErkJggg==", - buttonImageOnly: true, - buttonText: _("Select date"), + showOn: "focus", changeMonth: true, changeYear: true, showButtonPanel: true, -- 2.39.5