Your IP : 192.168.165.1


Current Path : C:/xampp/htdocs/moodle/mod/quiz/amd/build/
Upload File :
Current File : C:/xampp/htdocs/moodle/mod/quiz/amd/build/add_random_question.min.js.map

{"version":3,"sources":["../src/add_random_question.js"],"names":["define","AddQuestionModalLauncher","ModalAddRandomQuestion","init","contextId","category","returnUrl","cmid","TYPE","triggerElement","modal","setCategory","setReturnUrl","setCMID"],"mappings":"AAuBAA,OAAM,gCACF,CACI,sCADJ,CAEI,oCAFJ,CADE,CAKF,SACIC,CADJ,CAEIC,CAFJ,CAGE,CAEF,MAAO,CASHC,IAAI,CAAE,cAASC,CAAT,CAAoBC,CAApB,CAA8BC,CAA9B,CAAyCC,CAAzC,CAA+C,CACjDN,CAAwB,CAACE,IAAzB,CACID,CAAsB,CAACM,IAD3B,CAEI,4CAFJ,CAGIJ,CAHJ,CAKI,SAASK,CAAT,CAAyBC,CAAzB,CAAgC,CAC5BA,CAAK,CAACC,WAAN,CAAkBN,CAAlB,EACAK,CAAK,CAACE,YAAN,CAAmBN,CAAnB,EACAI,CAAK,CAACG,OAAN,CAAcN,CAAd,CACH,CATL,CAWH,CArBE,CAuBV,CAjCK,CAAN","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 * @package   mod_quiz\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         */\n        init: function(contextId, category, returnUrl, cmid) {\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            );\n        }\n    };\n});\n"],"file":"add_random_question.min.js"}