From 2c1dbc93433a5bc34104419d6e0c9b7eb2bb5ac3 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. --- 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 c0f13aed81..0cb11cf3c8 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -1276,7 +1276,8 @@ details[open] { clear: both; font-size: 90%; margin: 0; - padding: .2em .5em .4em 10px; + padding: .8em .5em .8em 10px; + position: relative; } #header { @@ -4238,7 +4239,7 @@ span { 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 d86b994f1f..7b4e9a9e5c 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.20.1