From 0ae7c6a343577cb1cbecffdc202bcca222041d83 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 7 May 2019 11:59:32 +0100 Subject: [PATCH] Bug 21245: Move 'Last patron' button into 'breadcrumb' bar This patch moved the 'Last patron' button introduced in bug 20312 inline with the breadcrumb bar from floating above it. Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 5 +++-- koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 1 + 2 files changed, 4 insertions(+), 2 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 16262d1089..8f64a5250f 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -994,7 +994,8 @@ details[open] { background-color: #E6F0F2; clear: both; margin: 0; - padding: .2em .5em .4em 10px; + padding: .8em .5em .8em 10px; + position: relative; } #header { @@ -3940,7 +3941,7 @@ input.renew { display: none; position: absolute; right: 5px; - top: 100px; + top: 0px; } /* ==== MODULE LINKS - Start ==== */ diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js index 70e0551b8f..4c6f96c92b 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js +++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js @@ -92,6 +92,7 @@ $.fn.selectTabByID = function (tabID) { }); if (typeof $.cookie("lastborrowernumber") !== "undefined" && $("#hiddenborrowernumber").val() != $.cookie("lastborrowernumber")) { + $("#lastborrower-window").detach().appendTo("#breadcrumbs"); $("#lastborrowerlink").show(); $("#lastborrowerlink").prop("title", $.cookie("lastborrowername") + " (" + $.cookie("lastborrowercard") + ")"); $("#lastborrowerlink").prop("href", "/cgi-bin/koha/circ/circulation.pl?borrowernumber=" + $.cookie("lastborrowernumber")); -- 2.39.5