summaryrefslogtreecommitdiff
path: root/plugins/ModPlus/modplus.js
blob: 2e90de4f19adc2f470f434fa007751ad5ad7ec7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
 * modplus.js
 * (c) 2010 StatusNet, Inc
 */

$(function() {
    function ModPlus_setup(notice) {
        if ($(notice).find('.remote-profile-options').size()) {
            var $options = $(notice).find('.remote-profile-options');
            $options.prepend($())
            $(notice).find('.author').mouseenter(function(event) {
                $(notice).find('.remote-profile-options').fadeIn();
            });
            $(notice).mouseleave(function(event) {
                $(notice).find('.remote-profile-options').fadeOut();
            });
        }
    }

    $('.notice').each(function() {
        ModPlus_setup(this);
    });
});