ModPlus available also for non-logged in users.

This commit is contained in:
Mikael Nordfeldth
2014-06-23 20:30:00 +02:00
parent 725af5edd0
commit 41a233f106
3 changed files with 4 additions and 7 deletions

View File

@@ -0,0 +1,39 @@
/**
* modplus.js
* (c) 2010 StatusNet, Inc
*/
$(function() {
// Notice lists...
$(document).on('mouseenter', '.notice .p-author', function(e) {
var notice = $(this).closest('.notice');
var popup = notice.find('.remote-profile-options');
if (popup.length) {
popup.fadeIn();
}
});
$(document).on('mouseleave', '.notice', function(e) {
var notice = $(this);
var popup = notice.find('.remote-profile-options');
if (popup.length) {
popup.fadeOut();
}
});
// Profile lists...
$(document).on('mouseenter', '.profile .u-photo', function(e) {
var profile = $(this).closest('.profile');
var popup = profile.find('.remote-profile-options');
if (popup.length) {
popup.fadeIn();
}
});
$(document).on('mouseleave', '.profile', function(e) {
var profile = $(this);
var popup = profile.find('.remote-profile-options');
if (popup.length) {
popup.fadeOut();
}
});
});