Bugzilla – Attachment 83293 Details for
Bug 21751
fixFloat toolbar not displaying properly in Chrome
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21751: Remove former fixFloat plugin
Bug-21751-Remove-former-fixFloat-plugin.patch (text/plain), 3.26 KB, created by
Owen Leonard
on 2018-12-17 14:40:44 UTC
(
hide
)
Description:
Bug 21751: Remove former fixFloat plugin
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2018-12-17 14:40:44 UTC
Size:
3.26 KB
patch
obsolete
>From 1cd55cba83f52a5704ece7d11170702bb65208cd Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 6 Dec 2018 14:54:58 -0300 >Subject: [PATCH] Bug 21751: Remove former fixFloat plugin > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../lib/jquery/plugins/jquery.fixFloat.js | 73 ---------------------- > 1 file changed, 73 deletions(-) > delete mode 100644 koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js > >diff --git a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js b/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js >deleted file mode 100644 >index 330c758..0000000 >--- a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js >+++ /dev/null >@@ -1,73 +0,0 @@ >-/* Source: http://www.webspeaks.in/2011/07/new-gmail-like-floating-toolbar-jquery.html >- Revision: http://jsfiddle.net/pasmalin/AyjeZ/ >-*/ >-(function ($, window) { >- "use strict"; >- $.fn.fixFloat = function (options) { >- var options = options || {}; >- var tbh = $(this); >- var defaults = { >- enabled: true, >- originalOffset: tbh.offset().top, >- originalPosition: tbh.position().top, >- }; >- var originalOffset = typeof options.originalOffset === 'undefined' >- ? defaults.originalOffset >- : options.originalOffset; >- >- var originalPosition = typeof options.originalPosition === 'undefined' >- ? defaults.originalPosition >- : options.originalPosition; >- >- options = $.extend(defaults, options); >- >- if (tbh.css('position') !== 'absolute') { >- var tbhBis = tbh.clone(); >- tbhBis.css({ >- "display": tbh.css("display"), >- "visibility": "hidden" >- }); >- tbhBis.width(tbh.innerWidth(true)); >- tbhBis.height(tbh.height()); >- tbhBis.attr('id', tbh.attr('id')+'Bis'); // Avoid 2 elts with the same id >- tbh.after(tbhBis); >- tbh.width(tbh.width()); >- tbh.css({ >- 'position': 'absolute', >- 'top': originalPosition, >- }); >- } >- >- if (options.enabled) { >- $(window).scroll(function () { >- var offsetTop = tbh.offset().top; >- >- var s = parseInt($(window).scrollTop(), 10); >- >- var fixMe = (s > offsetTop); >- var repositionMe = (s < originalOffset); >- if (fixMe) { >- tbh.css({ >- 'position': 'fixed', >- 'top': '0', >- 'z-index': '1000' >- }); >- tbh.addClass("floating"); >- } >- if (repositionMe) { >- tbh.css({ >- 'position': 'absolute', >- 'top': originalPosition, >- 'z-index': '1' >- }); >- tbh.removeClass("floating"); >- } >- }); >- >- $(window).resize(function() { >- var p = $(tbh).parents('div').first(); >- $(tbh).width(p.width()-10); >- }); >- } >- }; >-})(jQuery, window); >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21751
:
81830
|
81974
|
82346
|
82365
|
82908
|
82924
|
82925
|
82926
|
83292
|
83293
|
83731
|
83732
|
84316
|
84317
|
84476
|
84500
|
84501
|
84502
|
84660
|
84661
|
84662