]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/ModPlus/js/modplus.js
Added type-hint for adaptNoticeListItem() method
[quix0rs-gnu-social.git] / plugins / ModPlus / js / modplus.js
1 /**
2  * modplus.js
3  * (c) 2010 StatusNet, Inc
4  */
5
6 $(function() {
7     // Notice lists...
8     $(document).on('mouseenter', '.notice .p-author', function(e) {
9         var notice = $(this).closest('.notice');
10         var popup = notice.find('.remote-profile-options');
11         if (popup.length) {
12             popup.fadeIn();
13         }
14     });
15     $(document).on('mouseleave', '.notice', function(e) {
16         var notice = $(this);
17         var popup = notice.find('.remote-profile-options');
18         if (popup.length) {
19             popup.fadeOut();
20         }
21     });
22
23     // Profile lists...
24     $(document).on('mouseenter', '.profile .u-photo', function(e) {
25         var profile = $(this).closest('.profile');
26         var popup = profile.find('.remote-profile-options');
27         if (popup.length) {
28             popup.fadeIn();
29         }
30     });
31     $(document).on('mouseleave', '.profile', function(e) {
32         var profile = $(this);
33         var popup = profile.find('.remote-profile-options');
34         if (popup.length) {
35             popup.fadeOut();
36         }
37     });
38
39 });