From 5ca9ee1441594b5451d9166260ff55eae8949d8e 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 --- 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 60ced2786b..dfddd6aec8 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 { @@ -3880,7 +3881,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.11.0