From ccad7d90816b76196eda3813d60010322185b81f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 13 May 2016 15:04:47 +0100 Subject: [PATCH] Bug 16400: Restore the previous stack order behavior MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When updating the plugin, the stack order behavior has changed. This patch restores the prevous behavior (not always z-index: 1000) Signed-off-by: Owen Leonard Signed-off-by: Nick Clemens Signed-off-by: Kyle M Hall (cherry picked from commit 82dbf05f542d7bc9cf5c8607b0ecf182b8c2c076) Signed-off-by: Frédéric Demians --- .../intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js b/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js index f528cc9a42..2efc96f18d 100644 --- a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js +++ b/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js @@ -36,9 +36,6 @@ 'top': originalOffset }); } - tbh.css({ - 'z-index': 1000 - }); if (options.enabled) { $(window).scroll(function () { @@ -49,14 +46,16 @@ if (fixMe) { tbh.css({ 'position': 'fixed', - 'top': '0' + 'top': '0', + 'z-index': '1000' }); tbh.addClass("floating"); } if (repositionMe) { tbh.css({ 'position': 'absolute', - 'top': originalOffset + 'top': originalOffset, + 'z-index': '1' }); tbh.removeClass("floating"); } -- 2.39.2