[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
yvi.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1334
Remove community "join" option for OpenID users.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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) --------------------------------------------------------------------------------