Skip to content

Commit

Permalink
MDL-78217 grade: Refine front-end weight handling and add validation
Browse files Browse the repository at this point in the history
In this commit, the front-end experience for grade item weights in the
gradebook setup page is refined, building upon the improvements made in
the previous commit.

Firstly, overridden weights are excluded from automatic adjustments.
This enhancement guarantees that user-specified weights remain unchanged
by front-end calculations, thereby preserving the flexibility of custom
weight assignments.

Additionally, front-end form validation has been introduced to enhance
the user experience. Now, users will see validation errors if they
submit invalid values, giving them the opportunity to correct the values
themselves. This ensures that weights are not automatically normalised
by the back-end code, preserving the values as entered by the user.
  • Loading branch information
rezaies committed Sep 21, 2023
1 parent 22a9743 commit 6aa05cf
Show file tree
Hide file tree
Showing 8 changed files with 133 additions and 107 deletions.
4 changes: 2 additions & 2 deletions grade/amd/build/edittree_weights.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6aa05cf

Please sign in to comment.