From a0043ec80d11d718b8ea13e69879e7d4309d011e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 12 Jun 2017 11:38:59 -0300 Subject: [PATCH] Bug 18685: (bug 18551 follow-up) Fix patron toolbar Bug 18551 moves the way the filters are displayed and so the position of the patron toolbar must be recalculated. Test plan: Edit patron's detail open the filters, scrolldown close the filters, scrolldown => The toolbar must be correctly placed Signed-off-by: Owen Leonard (cherry picked from commit 6ae6d4bcb5238b1ffc0a22cc1d83ac05ba982b92) Signed-off-by: Fridolin Somers --- .../prog/en/modules/members/memberentrygen.tt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt index 73cb4d60a5..7f6f734322 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -13,16 +13,16 @@ $(document).ready(function() { $("#saverecord").css({ 'margin-left': 0 }); var original_offset = $("#toolbar").position().top; var additional_height = $("#filters").height(); - $('#toolbar').fixFloat({ 'originalOffset': original_offset - additional_height }); + $('#toolbar').fixFloat({ 'originalOffset': original_offset }); $("#filteraction_on").on("click", function(){ $(window).off('scroll'); - $("#toolbar").css({ top: original_offset }); - $('#toolbar').fixFloat({ 'originalOffset': original_offset }); + $("#toolbar").css({ top: original_offset + additional_height }); + $('#toolbar').fixFloat({ 'originalOffset': original_offset + additional_height }); }); $("#filteraction_off").on("click", function(){ $(window).off('scroll'); - $("#toolbar").css({ top: original_offset - additional_height}); - $('#toolbar').fixFloat({ 'originalOffset': original_offset - additional_height }); + $("#toolbar").css({ top: original_offset }); + $('#toolbar').fixFloat({ 'originalOffset': original_offset }); }) [% IF categorycode %] -- 2.39.5