Skip to content

Commit

Permalink
Disable checkboxes and radio buttons besides textbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Compizfox committed Oct 20, 2017
1 parent 6f9bce0 commit b8f0673
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/static/js/event_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function setNoteFieldsetState() {
var checked = $('#note_field_check').is(':checked');

$('#note_fieldset input').prop('readonly', !checked);
$('#note_fieldset input:checkbox, #note_fieldset input:radio').prop('disabled', !checked);

if(!checked)
$('#id_note_field').val('')
Expand Down

0 comments on commit b8f0673

Please sign in to comment.