afd92957b4
Popup remote profile options menu now shown on profile lists as well as notice lists.
40 lines
1.0 KiB
JavaScript
40 lines
1.0 KiB
JavaScript
/**
|
|
* modplus.js
|
|
* (c) 2010 StatusNet, Inc
|
|
*/
|
|
|
|
$(function() {
|
|
// Notice lists...
|
|
$('.notice .author').live('mouseenter', function(e) {
|
|
var notice = $(this).closest('.notice');
|
|
var popup = notice.find('.remote-profile-options');
|
|
if (popup.length) {
|
|
popup.fadeIn();
|
|
}
|
|
});
|
|
$('.notice').live('mouseleave', function(e) {
|
|
var notice = $(this);
|
|
var popup = notice.find('.remote-profile-options');
|
|
if (popup.length) {
|
|
popup.fadeOut();
|
|
}
|
|
});
|
|
|
|
// Profile lists...
|
|
$('.profile .avatar').live('mouseenter', function(e) {
|
|
var profile = $(this).closest('.profile');
|
|
var popup = profile.find('.remote-profile-options');
|
|
if (popup.length) {
|
|
popup.fadeIn();
|
|
}
|
|
});
|
|
$('.profile').live('mouseleave', function(e) {
|
|
var profile = $(this);
|
|
var popup = profile.find('.remote-profile-options');
|
|
if (popup.length) {
|
|
popup.fadeOut();
|
|
}
|
|
});
|
|
|
|
});
|