mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Merge branch 'MDL-78217-master' of https://github.com/rezaies/moodle
This commit is contained in:
commit
216060b637
2
grade/amd/build/edittree_weights.min.js
vendored
2
grade/amd/build/edittree_weights.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -287,7 +287,7 @@ export const init = (decSep, oldCalculation) => {
|
||||
// This is only required if we are using natural weights.
|
||||
if (parseInt(categoryElement.dataset.aggregation) === grade.aggregation.sum) {
|
||||
const weightElement = gradeItemRow.querySelector(selectors.weightOverrideInput);
|
||||
weightElement.value = formatFloat(parseWeight(weightElement.value));
|
||||
weightElement.value = formatFloat(Math.max(0, parseWeight(weightElement.value)));
|
||||
recalculateNaturalWeights(categoryElement);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user