Remove community "join" option for OpenID users.

        Patch by yvi. 

diffs (21 lines):

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)
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to