Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

MDL-40308: Fix javascript for lti mod_form

It was toggling the state of the hidden input - not the checkbox.
  • Loading branch information...
1 parent 74c68b5 commit b189b3871332df68b814d05c411cc13877500d36 @damyon damyon committed with danpoltawski
Showing with 3 additions and 5 deletions.
  1. +3 −5 mod/lti/mod_form.js
8 mod/lti/mod_form.js
@@ -190,12 +190,10 @@
var setting, control;
- // Can't look these up by ID as they seem to get random IDs.
- // Setting an id manually from mod_form made them turn into text boxes.
var privacyControls = {
- sendname:'input[name=instructorchoicesendname]'),
- sendemailaddr:'input[name=instructorchoicesendemailaddr]'),
- acceptgrades:'input[name=instructorchoiceacceptgrades]')
+ sendname:'#id_instructorchoicesendname'),
+ sendemailaddr:'#id_instructorchoicesendemailaddr'),
+ acceptgrades:'#id_instructorchoiceacceptgrades')
// Store a copy of user entered privacy settings as we may overwrite them

0 comments on commit b189b38

Please sign in to comment.
Something went wrong with that request. Please try again.