summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-11-15 17:45:58 -0800
committerBrion Vibber <brion@pobox.com>2010-11-15 17:45:58 -0800
commit54de6d3260e7fde77eb86079bd67a815930b8b43 (patch)
treef18b8fe6f0788e2c13df0558f34ef87163828557
parent25170f272ca853c585531894d282c7545f00bf16 (diff)
Forgot to commit the JS for ModPlus. :)
-rw-r--r--plugins/ModPlus/modplus.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/ModPlus/modplus.js b/plugins/ModPlus/modplus.js
new file mode 100644
index 000000000..2e90de4f1
--- /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);
+ });
+});