MediaWiki:Common.js: Difference between revisions

m
hopefully this doesn't break anything: attempt to remove default tooltips
(fix my fix to fix the fixes that i fixed)
m (hopefully this doesn't break anything: attempt to remove default tooltips)
Line 4: Line 4:
$(function() {
$(function() {
   // Tooltip only Text
   // Tooltip only Text
   $('.masterTooltip').hover(function() {
 
   $('.hideDefaultTooltip').hover(function() {
       // Hide non-JS
       // Hide non-JS
       $(this).data('tipText', $(this).attr('title')).removeAttr('title');
       $(this).data('tipText', $(this).attr('title')).removeAttr('title');
 
    }
  });
  $('.masterTooltip').hover(function() {
       //Custom Tooltip
       //Custom Tooltip
       var title = $(this).attr('data-title');
       var title = $(this).attr('data-title');
Line 27: Line 30:
     });
     });
   });
   });
   // Hide the stupid empty newlines after crafting grids
   // Hide the stupid empty newlines after crafting grids
   $('.crafting + p br:only-child').parent().hide();
   $('.crafting + p br:only-child').parent().hide();
Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator
2,563

edits