]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Forgot to commit the JS for ModPlus. :)
authorBrion Vibber <brion@pobox.com>
Tue, 16 Nov 2010 01:45:58 +0000 (17:45 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 16 Nov 2010 01:45:58 +0000 (17:45 -0800)
plugins/ModPlus/modplus.js [new file with mode: 0644]

diff --git a/plugins/ModPlus/modplus.js b/plugins/ModPlus/modplus.js
new file mode 100644 (file)
index 0000000..2e90de4
--- /dev/null
@@ -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);
+    });
+});