New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature(comments): Added separate edit page for generic comments.php #6715
Conversation
forward(REFERER); | ||
} | ||
|
||
$subject = $comment->getContainerEntity(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be careful with this word "subject". I initially thought you meant the grammatical subject as in the author or the person who wrote the comment, as opposed to the topic that was being commented on (i.e. blog, etc.).
I'd prefer "target" as that's what it is in the river now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, good that you mention it.
LGTM, aside from the one minor variable-naming nit. |
That handles case when user opens edit link in new tab. Fixes Elgg#6666
Corrected and amended commit.. |
Two issues:
|
If we only want this functionality available via JS, we need to actually make it a |
Ad. 1. Yes I don't like it either, but wanted to avoid messing with action as I will have to add some weird condition in action or add some additional parameter in the form. Also "cancel" link don't work Ad. 2. I think it's nice practice that makes at least dev life easier in case of javascript crash. I wouldn't be surprised if it was a good accessibility practice. I'm trying to make it reuse as much as possible and keep it simple. I'll see what can be done with minimal changes. |
@Srokap any updates on this? |
See #6753. |
That handles case when user opens edit link in new tab.
Fixes #6666