Skip to content

Commit

Permalink
fix: unhide category score checkbox in simple view
Browse files Browse the repository at this point in the history
  • Loading branch information
KirylHatalski committed Aug 29, 2024
1 parent e32a275 commit 3f074e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/js/controller/creator/views/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ define([
const weightVisible = features.isVisible('taoQtiTest/creator/test/property/scoring/weight')

function changeScoring(scoring) {
var noOptions = !!scoring && ['none', 'custom'].indexOf(scoring.outcomeProcessing) === -1 && weightVisible;
var noOptions = !!scoring && ['none', 'custom'].indexOf(scoring.outcomeProcessing) === -1;
var newScoringState = JSON.stringify(scoring);

hider.toggle($cutScoreLine, !!scoring && scoring.outcomeProcessing === 'cut');
hider.toggle($categoryScoreLine, noOptions);
hider.toggle($weightIdentifierLine, noOptions);
hider.toggle($weightIdentifierLine, noOptions && weightVisible);
hider.hide($descriptions);
hider.show($descriptions.filter('[data-key="' + scoring.outcomeProcessing + '"]'));

Expand Down

0 comments on commit 3f074e3

Please sign in to comment.