Skip to content

Commit

Permalink
more eslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusgreen committed Aug 29, 2020
1 parent da1a0b1 commit 692985f
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions amd/src/questionedit.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,22 @@ define(['jquery', 'qtype_gapfill/Item'], function($, Item) {
$('#id_answerdisplay').change(function() {
var selected = $(this).val();
if (selected == 'gapfill') {
$('#id_fixedgapsize').prop('disabled',false);
$("#id_optionsaftertext").prop('disabled',true).prop('checked',false);
$('#id_singleuse').prop('disabled',true).prop('checked', false);
$('#id_fixedgapsize').prop('disabled', false);
$("#id_optionsaftertext").prop('disabled', true).prop('checked', false);
$('#id_singleuse').prop('disabled', true).prop('checked', false);
}
if (selected == 'dragdrop') {
$('#id_optionsaftertext').prop('disabled',false);
$('#id_singleuse').prop('disabled',false);
$('#id_fixedgapsize').prop('disabled',false);
$('#id_optionsaftertext').prop('disabled', false);
$('#id_singleuse').prop('disabled', false);
$('#id_fixedgapsize').prop('disabled', false);
}
if (selected == 'dropdown') {
$('#id_fixedgapsize').prop('disabled',true).prop('checked',false);
$('#id_optionsaftertext').prop('disabled',true).prop('checked',false);
$('#id_singleuse').prop('disabled',true).prop('checked',false);
$('#id_fixedgapsize').prop('disabled', true).prop('checked', false);
$('#id_optionsaftertext').prop('disabled', true).prop('checked', false);
$('#id_singleuse').prop('disabled', true).prop('checked', false);
}




});
/* A click on the itemsettings button */
$('#id_itemsettings_button').on('click', function() {
Expand Down

0 comments on commit 692985f

Please sign in to comment.