Skip to content

MBS-10330: Avoid jumping when reloading map - #152

Closed
sh-csg wants to merge 1 commit into
masterfrom
MBS-10330-avoid-jumping
Closed

MBS-10330: Avoid jumping when reloading map#152
sh-csg wants to merge 1 commit into
masterfrom
MBS-10330-avoid-jumping

Conversation

@sh-csg

@sh-csg sh-csg commented Sep 26, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@sh-csg sh-csg self-assigned this Sep 26, 2025
@sh-csg
sh-csg force-pushed the MBS-10330-avoid-jumping branch from 7ff270e to a36d45a Compare September 28, 2025 13:21

@PhMemmel PhMemmel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good in general.

One comment.

Besides that: Currently, reloading of the learningmap seems to be broken if you mark a completed activity on the course page as "not completed". This behavior does not seem to be caused by this patch, but as the mechanics for loading the learningmap are being touched in this PR it would be nice if this could be fixed as well?

Comment thread lib.php Outdated

$mapcontent = null;

if (!empty($request['methodname']) && $request['methodname'] == 'core_course_get_module') {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've never seen this in the moodle code. Is this stable?

How about using if (AJAX_SCRIPT)? This is being used far more often? Would this be specific enough?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wouldn't allow me to handle just this method (as I cannot know what other webservices are doing).

@sh-csg

sh-csg commented Sep 30, 2025

Copy link
Copy Markdown
Contributor Author

Looks good in general.

One comment.

Besides that: Currently, reloading of the learningmap seems to be broken if you mark a completed activity on the course page as "not completed". This behavior does not seem to be caused by this patch, but as the mechanics for loading the learningmap are being touched in this PR it would be nice if this could be fixed as well?

I can't reproduce that here.

@sh-csg
sh-csg force-pushed the MBS-10330-avoid-jumping branch 2 times, most recently from 08e4930 to 9c2d47a Compare October 1, 2025 08:22
@sh-csg
sh-csg force-pushed the MBS-10330-avoid-jumping branch from 9c2d47a to 75dbdb1 Compare October 1, 2025 09:08
@PhMemmel

PhMemmel commented Oct 2, 2025

Copy link
Copy Markdown
Member

Was by accident merged via #154 , but should be fine

@PhMemmel PhMemmel closed this Oct 2, 2025
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