Bug 16400: Restore the previous stack order behavior
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 13 May 2016 14:04:47 +0000 (15:04 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 24 Jun 2016 13:34:44 +0000 (13:34 +0000)
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 <oleonard@myacpl.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js

index f528cc9..2efc96f 100644 (file)
@@ -36,9 +36,6 @@
                     'top': originalOffset
             });
         }
-        tbh.css({
-            'z-index': 1000
-        });
 
         if (options.enabled) {
             $(window).scroll(function () {
                 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");
                 }