From ef4a3d23cb85fe47f4c729bf2a29fc532878f390 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 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 --- koha-tmpl/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 f528cc9..2efc96f 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.1.4