gnu-social/public/plugins/ModPlus/js/modplus.js
Diogo Cordeiro 2a06261f75 [CORE][COMPOSER] Move extlib packages with immediate composer correspondent to composer dependencies
This adds a composer.json for all dependencies that are available
2019-08-03 17:47:24 +01:00

40 lines
1.0 KiB
JavaScript

/**
* 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();
}
});
});