// $Id: panels.js,v 1.2.4.1 2009/10/05 22:40:35 merlinofchaos Exp $ (function ($) { Drupal.Panels = {}; Drupal.Panels.autoAttach = function() { if ($.browser.msie) { // If IE, attach a hover event so we can see our admin links. $("div.panel-pane").hover( function() { $('div.panel-hide', this).addClass("panel-hide-hover"); return true; }, function() { $('div.panel-hide', this).removeClass("panel-hide-hover"); return true; } ); $("div.admin-links").hover( function() { $(this).addClass("admin-links-hover"); return true; }, function(){ $(this).removeClass("admin-links-hover"); return true; } ); } }; $(Drupal.Panels.autoAttach); })(jQuery);