Forgot to commit the JS for ModPlus. :)

This commit is contained in:
Brion Vibber 2010-11-15 17:45:58 -08:00
parent 25170f272c
commit 54de6d3260

View File

@ -0,0 +1,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);
});
});