From: Brion Vibber Date: Tue, 16 Nov 2010 01:45:58 +0000 (-0800) Subject: Forgot to commit the JS for ModPlus. :) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=54de6d3260e7fde77eb86079bd67a815930b8b43;p=quix0rs-gnu-social.git Forgot to commit the JS for ModPlus. :) --- diff --git a/plugins/ModPlus/modplus.js b/plugins/ModPlus/modplus.js new file mode 100644 index 0000000000..2e90de4f19 --- /dev/null +++ b/plugins/ModPlus/modplus.js @@ -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); + }); +});