forked from GNUsocial/gnu-social
414a95a784
No validation has been attempted yet. Lots of changes left. This is visibly not (very) different from the previous CSS layout. But some simplifications have been made. Might cause issues with local changes to themes and CSS. Also maybe javascript which depends on certain legacy microformats elements. The move to microformats2 is motivated by the announcement that all microformats should be migrated to version 2, as of 2014-06-20 at: http://microformats.org/2014/06/20/microformats-org-turns-9-upgrade-to-microformats2
40 lines
1.0 KiB
JavaScript
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();
|
|
}
|
|
});
|
|
|
|
});
|