AutorÃa | Ultima modificación | Ver Log |
{"version":3,"file":"overview.min.js","sources":["../src/overview.js"],"sourcesContent":["// This file is part of Moodle - http://moodle.org/\n//\n// Moodle is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// Moodle is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with Moodle. If not, see <http://www.gnu.org/licenses/>.\n\n/**\n * Completion Progress overview page behaviour.\n *\n * @module block_completion_progress/overview\n * @copyright 2020 Jonathon Fowler <fowlerj@usq.edu.au>\n * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or l
ater\n */\ndefine(['core_user/participants'],\n function(Participants) {\n return /** @alias module:block_completion_progress/overview */ {\n /**\n * Initialise the overview page.\n *\n * @param {object} options initialisation options.\n */\n init: function(options) {\n var form = document.getElementById('participantsform');\n var action = document.getElementById('formactionid');\n\n /**\n * Manage the activation of the 'With selected users' control.\n */\n function checkaction() {\n action.disabled = (form.querySelector('input.usercheckbox:checked') === null);\n }\n\n Participants.init(options);\n\n checkaction();\n form.addEventListener('change', checkaction);\n }\n };\n });\n"],"names":["define","Participants","init","options","form","doc
ument","getElementById","action","checkaction","disabled","querySelector","addEventListener"],"mappings":";;;;;;;AAsBAA,4CAAO,CAAC,2BACJ,SAASC,oBAC0D,CAM3DC,KAAM,SAASC,aACPC,KAAOC,SAASC,eAAe,oBAC/BC,OAASF,SAASC,eAAe,yBAK5BE,cACLD,OAAOE,SAAiE,OAArDL,KAAKM,cAAc,8BAG1CT,aAAaC,KAAKC,SAElBK,cACAJ,KAAKO,iBAAiB,SAAUH"}