diff --git a/macao/assets/_custom.scss b/macao/assets/_custom.scss index 4f698309531e8fc1e0ffa9ae12b743039753b1c1..5162764b4668d3f397c6adee6f90fac42efcf38e 100644 --- a/macao/assets/_custom.scss +++ b/macao/assets/_custom.scss @@ -51,7 +51,7 @@ select.sd-dropdown.inline-dropdown, input.sd-input.inline-input { // *********************************** // Hide disabled checkboxes in some quizz // *********************************** -[data-name="pg665"] { +.hide-disabled-checkboxes { .sd-checkbox--readonly { span.sd-checkbox__decorator { display: none; diff --git a/macao/assets/quiz.js b/macao/assets/quiz.js index 8ca6271c1809e88b60d6c8c689a92c62439f559e..e441f1ae61ff787b1c81b0a44a3212d52a4ca3c9 100644 --- a/macao/assets/quiz.js +++ b/macao/assets/quiz.js @@ -63,8 +63,13 @@ $(function () { }); survey.onAfterRenderQuestion.add((survey, options) => { - if (options.question.customFormat && options.question.customFormat === "one_line") { - $(options.htmlElement).addClass("one-line"); + if (options.question.customFormat) { + if (options.question.customFormat === "one_line") { + $(options.htmlElement).addClass("one-line"); + } + if(options.question.customFormat === "hide_disabled-checkboxes") { + $(options.htmlElement).addClass("hide-disabled-checkboxes"); + } } });