afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-06-22 05:06 pm

[dw-free] OpenID users shouldn't have join option on contextual hover popup.

[commit: http://hg.dwscoalition.org/dw-free/rev/1f9dcb51859e]

http://bugs.dwscoalition.org/show_bug.cgi?id=1334

Remove community "join" option for OpenID users.

Patch by [personal profile] yvi.

Files modified:
  • htdocs/js/contextualhover.js
--------------------------------------------------------------------------------
diff -r f1c730aaded6 -r 1f9dcb51859e htdocs/js/contextualhover.js
--- a/htdocs/js/contextualhover.js	Sun Jun 21 03:25:39 2009 +0000
+++ b/htdocs/js/contextualhover.js	Mon Jun 22 17:06:34 2009 +0000
@@ -321,7 +321,7 @@ ContextualPopup.renderPopup = function (
         }
 
         // member of community
-        if (data.is_logged_in && data.is_comm) {
+        if (data.is_logged_in && data.is_comm && !data.self_is_identity) {
             var membership      = document.createElement("span");
 
             if (!data.is_closed_membership || data.is_member) {
@@ -463,7 +463,7 @@ ContextualPopup.renderPopup = function (
         }
 
         // add a bar between stuff if we have community actions
-        if ((data.is_logged_in && data.is_comm) || (message && (trust || watch)))
+        if ((data.is_logged_in && data.is_comm && !data.self_is_identity) || (message && (trust || watch)))
             content.appendChild(document.createElement("br"));
 
         if (trust)
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org