From 2578b9469141a4f0c7f24b4fd5743fa2ce4fbca2 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 12 Sep 2018 16:33:48 +0000 Subject: [PATCH] Bug 20809: (follow-up) Corrections to CSS and JS This follow-up modifies JavaScript so that the confirmation dialog is triggered when deleting a patron image from the modal window. The CSS is modified to improve the alignment of patron image and edit button. Signed-off-by: Claire Gravely Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- .../intranet-tmpl/prog/css/src/staff-global.scss | 5 +++-- .../prog/en/includes/str/members-menu.inc | 15 ++++++++++++++- .../prog/en/modules/members/moremember.tt | 16 ++-------------- 3 files changed, 19 insertions(+), 17 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 b790a07d7c..e1c9d0a6d4 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -1737,15 +1737,16 @@ dd { } .patronimage { + border: 1px solid #EEE; display: block; max-width: 160px; + margin: auto; opacity: 1; transition: .2s ease; - .empty { + &.empty { background: transparent url( "../img/patron-blank.min.svg" ) center 5px no-repeat; height: 125px; - margin: .3em 0 .3em .3em; padding: 0; width: 80%; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/str/members-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/str/members-menu.inc index 703930cd25..2d5ebfe588 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/str/members-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/str/members-menu.inc @@ -2,7 +2,7 @@ [% USE Koha %] [% USE Categories %] - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index 1dda5d00a1..376b31ba1c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -286,9 +286,9 @@ [% END %]