diff --git a/app/views/layouts/base.rhtml b/app/views/layouts/base.rhtml index ae9ad1e4..f444b2c1 100644 --- a/app/views/layouts/base.rhtml +++ b/app/views/layouts/base.rhtml @@ -18,7 +18,6 @@ <%= javascript_heads %> <%= stylesheet_link_tag 'jstoolbar' %> <%= javascript_include_tag 'jquery.1.3.2.min.js' %> -<%= javascript_include_tag 'jquery.hoverIntent.minified.js' %> <%= javascript_include_tag 'common.js' %> <%= heads_for_theme %> <% heads_for_wiki_formatter %> diff --git a/public/javascripts/common.js b/public/javascripts/common.js index 3f4d0d4a..49b1d3e7 100644 --- a/public/javascripts/common.js +++ b/public/javascripts/common.js @@ -48,38 +48,6 @@ jQuery(document).ready(function($) { $("div[rel="+tTarget+"]").hide(); }); - // show/hide the profile box when hover over the gravatar - $(".profile-wrap").hover(function() { - /* - * this is currently set to deal with profiles that are already in the document - * if you wish to move to an ajax call instead, this is where it will occur - */ - $(this).find("a").removeAttr("title"); /* tooltips always mess with hovers */ - $(this).find(".profile-box").slideDown(animRate); - }, function() { - $(this).find(".profile-box").slideUp(animRate); - }); - - // set up functions for delayed profile views. - function profileShow(){ - var thisTop = $(this).height() + 5; - $(this).find("a").removeAttr("title"); /* tooltips always mess with hovers */ - $(this).find(".profile-box").css('top', thisTop).slideDown(animRate); - }; - function profileHide(){ - $(this).find(".profile-box").hide(); - }; - - // call a delayed profile view - $(".user").hoverIntent({ - sensitivity: 3, // number = sensitivity threshold (must be 1 or higher) - interval: 400, // number = milliseconds for onMouseOver polling interval - over: profileShow, // function = onMouseOver callback (REQUIRED) - timeout: 50, // number = milliseconds delay before onMouseOut - out: profileHide // function = onMouseOut callback (REQUIRED) - - }); - // file table thumbnails $("table a.has-thumb").hover(function() { $(this).removeAttr("title").toggleClass("active"); diff --git a/public/javascripts/jquery.hoverIntent.minified.js b/public/javascripts/jquery.hoverIntent.minified.js deleted file mode 100644 index f86ad879..00000000 --- a/public/javascripts/jquery.hoverIntent.minified.js +++ /dev/null @@ -1,9 +0,0 @@ -/** -* hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+ -* -* -* @param f onMouseOver function || An object with configuration options -* @param g onMouseOut function || Nothing (use configuration options object) -* @author Brian Cherne -*/ -(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))