Bugzilla – Attachment 107666 Details for
Bug 26004
Remove unused jQuery plugin jquery.hoverIntent.minified.js from the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26004: Remove unused jQuery plugin jquery.hoverIntent.minified.js from the OPAC
Bug-26004-Remove-unused-jQuery-plugin-jqueryhoverI.patch (text/plain), 2.73 KB, created by
Josef Moravec
on 2020-08-03 04:55:57 UTC
(
hide
)
Description:
Bug 26004: Remove unused jQuery plugin jquery.hoverIntent.minified.js from the OPAC
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2020-08-03 04:55:57 UTC
Size:
2.73 KB
patch
obsolete
>From dffa5ba6a03d89712eaee927bfea49e00b83fa44 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 17 Jul 2020 13:20:45 +0000 >Subject: [PATCH] Bug 26004: Remove unused jQuery plugin > jquery.hoverIntent.minified.js from the OPAC > >The jQuery plugin jquery.hoverIntent.minified.js hasn't been used in >Koha in long time. This patch removes it from the OPAC. > >To test, apply the patch and search for instances of "hoverIntent." >There should be none. > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > .../lib/jquery/plugins/jquery.hoverIntent.minified.js | 9 --------- > 1 file changed, 9 deletions(-) > delete mode 100644 koha-tmpl/opac-tmpl/bootstrap/lib/jquery/plugins/jquery.hoverIntent.minified.js > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/lib/jquery/plugins/jquery.hoverIntent.minified.js b/koha-tmpl/opac-tmpl/bootstrap/lib/jquery/plugins/jquery.hoverIntent.minified.js >deleted file mode 100644 >index 4d8888bb85..0000000000 >--- a/koha-tmpl/opac-tmpl/bootstrap/lib/jquery/plugins/jquery.hoverIntent.minified.js >+++ /dev/null >@@ -1,9 +0,0 @@ >-/** >-* hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+ >-* <http://cherne.net/brian/resources/jquery.hoverIntent.html> >-* >-* @param f onMouseOver function || An object with configuration options >-* @param g onMouseOut function || Nothing (use configuration options object) >-* @author Brian Cherne <brian@cherne.net> >-*/ >-(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery); >\ No newline at end of file >-- >2.25.1
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 26004
:
107011
|
107660
| 107666