modplus.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * modplus.js
  3. * (c) 2010 StatusNet, Inc
  4. */
  5. $(function() {
  6. // Notice lists...
  7. $(document).on('mouseenter', '.notice .p-author', function(e) {
  8. var notice = $(this).closest('.notice');
  9. var popup = notice.find('.remote-profile-options');
  10. if (popup.length) {
  11. popup.fadeIn();
  12. }
  13. });
  14. $(document).on('mouseleave', '.notice', function(e) {
  15. var notice = $(this);
  16. var popup = notice.find('.remote-profile-options');
  17. if (popup.length) {
  18. popup.fadeOut();
  19. }
  20. });
  21. // Profile lists...
  22. $(document).on('mouseenter', '.profile .u-photo', function(e) {
  23. var profile = $(this).closest('.profile');
  24. var popup = profile.find('.remote-profile-options');
  25. if (popup.length) {
  26. popup.fadeIn();
  27. }
  28. });
  29. $(document).on('mouseleave', '.profile', function(e) {
  30. var profile = $(this);
  31. var popup = profile.find('.remote-profile-options');
  32. if (popup.length) {
  33. popup.fadeOut();
  34. }
  35. });
  36. });