Skip to content

Commit

Permalink
MDL-56564 mod_lti: Reset fields before updating tool matches
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Nov 24, 2016
1 parent 1b669eb commit 144c149
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/lti/mod_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@

var typeSelector = Y.one('#id_typeid');
typeSelector.on('change', function(e){
// Reset configuration fields when another preconfigured tool is selected.
self.resetToolFields();

updateToolMatches();

self.toggleEditButtons();
Expand All @@ -66,9 +69,6 @@
allowgrades.set('checked', !self.getSelectedToolTypeOption().getAttribute('nogrades'));
self.toggleGradeSection();
}

// Reset configuration fields when another preconfigured tool is selected.
self.resetToolFields();
});

var contentItemButton = Y.one('[name="selectcontent"]');
Expand Down

0 comments on commit 144c149

Please sign in to comment.