-
Notifications
You must be signed in to change notification settings - Fork 82
Lesson comments implemented #2333
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
base: 4.0.0-dev
Are you sure you want to change the base?
Conversation
|
|
||
| $comment_id = 0; | ||
| $comment = Input::post( 'comment', '', Input::TYPE_KSES_POST ); | ||
| $lesson_id = Input::post( 'comment_post_ID', 0, Input::TYPE_INT ); |
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.
A validation check should be added for comment & the lesson_id.
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.
This function also used for load more in legacy mode. Cannot early return if comment and lesson_id not found.
Centralized comment and reply DOM ID prefixes and class names into constants to reduce duplication and improve maintainability. Updated all relevant DOM queries and element ID constructions to use these constants.
Adds logic to ensure the toast container is appended to the fullscreen element when the document enters fullscreen mode. This ensures toast notifications remain visible and correctly positioned during fullscreen transitions.
No description provided.