Browse Source

first pass at toggling the Page Actions menu on hover

Garrick van Buren 12 years ago
parent
commit
fb0d09d7ea
1 changed files with 8 additions and 0 deletions
  1. 8 0
      assets/scripts/foreground.js

+ 8 - 0
assets/scripts/foreground.js

@@ -26,4 +26,12 @@ jQuery(document).ready(function() {
   // Turn categories into labels
   // Turn categories into labels
   jQuery('#mw-normal-catlinks ul li a').addClass('label');
   jQuery('#mw-normal-catlinks ul li a').addClass('label');
 
 
+  // Make the Page Action button respond to hover
+  jQuery('a.button.dropdown').mouseenter(function(){
+    jQuery('ul#drop1').addClass('open').addClass('right').css('top', '32px').css('left', '785px');
+  });
+  jQuery('ul#drop1').mouseleave(function(){
+    jQuery('ul#drop1').removeClass('open').css('top', '-9999px').css('left', '785px');
+  });
+
 });
 });