Skip to content

Conversation

@bokelley
Copy link
Contributor

@bokelley bokelley commented Jan 7, 2026

Summary

  • Names like "Brian O'Kelley" were causing JavaScript syntax errors when clicking on user name links in the admin UI
  • The apostrophe was breaking the JavaScript string literal in onclick attributes
  • Added escapeJs() function to properly escape strings for JavaScript contexts
  • Updated onclick handlers that include user names in admin-users.html and admin-org-detail.html

Test plan

  • Click on a user name with an apostrophe (e.g., "Brian O'Kelley") in the Users & Actions page
  • Verify the context modal opens without JavaScript errors
  • Click "View" button for the same user - should also work
  • Test on Org Detail page where member names are also clickable

🤖 Generated with Claude Code

Names like "Brian O'Kelley" were causing JavaScript syntax errors when clicking
on user name links because the apostrophe broke the string in onclick attributes.

Added escapeJs() function to properly escape strings for JavaScript contexts and
updated all onclick handlers that include user names to use it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@bokelley bokelley merged commit 0907fd9 into main Jan 7, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants