Merge branch 'MDL-56564-master-2' of git://github.com/junpataleta/moodle

This commit is contained in:
Andrew Nicols
2016-11-24 15:22:12 +08:00
+3 -3
View File
@@ -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();
@@ -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"]');