Your IP : 192.168.165.1


Current Path : C:/xampp/htdocs/moodle/report/competency/amd/build/
Upload File :
Current File : C:/xampp/htdocs/moodle/report/competency/amd/build/user_course_navigation.min.js.map

{"version":3,"sources":["../src/user_course_navigation.js"],"names":["define","$","UserCourseNavigation","userSelector","moduleSelector","baseUrl","userId","courseId","moduleId","_baseUrl","_userId","_courseId","_moduleId","on","_userChanged","bind","_moduleChanged","prototype","e","M","util","js_pending","newUserId","target","val","queryStr","document","location","newModuleId"],"mappings":"AAuBAA,OAAM,4CAAC,CAAC,QAAD,CAAD,CAAa,SAASC,CAAT,CAAY,CAY3B,GAAIC,CAAAA,CAAoB,CAAG,SAASC,CAAT,CAAuBC,CAAvB,CAAuCC,CAAvC,CAAgDC,CAAhD,CAAwDC,CAAxD,CAAkEC,CAAlE,CAA4E,CACnG,KAAKC,QAAL,CAAgBJ,CAAhB,CACA,KAAKK,OAAL,CAAeJ,CAAM,CAAG,EAAxB,CACA,KAAKK,SAAL,CAAiBJ,CAAjB,CACA,KAAKK,SAAL,CAAiBJ,CAAjB,CAEAP,CAAC,CAACE,CAAD,CAAD,CAAgBU,EAAhB,CAAmB,QAAnB,CAA6B,KAAKC,YAAL,CAAkBC,IAAlB,CAAuB,IAAvB,CAA7B,EACAd,CAAC,CAACG,CAAD,CAAD,CAAkBS,EAAlB,CAAqB,QAArB,CAA+B,KAAKG,cAAL,CAAoBD,IAApB,CAAyB,IAAzB,CAA/B,CACH,CARD,CAgBAb,CAAoB,CAACe,SAArB,CAA+BH,YAA/B,CAA8C,SAASI,CAAT,CAAY,CAEtDC,CAAC,CAACC,IAAF,CAAOC,UAAP,CAAkB,uDAAlB,EAFsD,GAGlDC,CAAAA,CAAS,CAAGrB,CAAC,CAACiB,CAAC,CAACK,MAAH,CAAD,CAAYC,GAAZ,EAHsC,CAIlDC,CAAQ,CAAG,SAAWH,CAAX,CAAuB,MAAvB,CAAgC,KAAKX,SAArC,CAAiD,OAAjD,CAA2D,KAAKC,SAJzB,CAKtDc,QAAQ,CAACC,QAAT,CAAoB,KAAKlB,QAAL,CAAgBgB,CACvC,CAND,CAcAvB,CAAoB,CAACe,SAArB,CAA+BD,cAA/B,CAAgD,SAASE,CAAT,CAAY,CAExDC,CAAC,CAACC,IAAF,CAAOC,UAAP,CAAkB,yDAAlB,EAFwD,GAGpDO,CAAAA,CAAW,CAAG3B,CAAC,CAACiB,CAAC,CAACK,MAAH,CAAD,CAAYC,GAAZ,EAHsC,CAIpDC,CAAQ,CAAG,QAAUG,CAAV,CAAwB,MAAxB,CAAiC,KAAKjB,SAAtC,CAAkD,QAAlD,CAA6D,KAAKD,OAJzB,CAKxDgB,QAAQ,CAACC,QAAT,CAAoB,KAAKlB,QAAL,CAAgBgB,CACvC,CAND,CASAvB,CAAoB,CAACe,SAArB,CAA+BP,OAA/B,CAAyC,IAAzC,CAEAR,CAAoB,CAACe,SAArB,CAA+BL,SAA/B,CAA2C,IAA3C,CAEAV,CAAoB,CAACe,SAArB,CAA+BN,SAA/B,CAA2C,IAA3C,CAEAT,CAAoB,CAACe,SAArB,CAA+BR,QAA/B,CAA0C,IAA1C,CAEA,MAAqEP,CAAAA,CAExE,CA7DK,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 * Module to navigation between users in a course.\n *\n * @package    report_competency\n * @copyright  2015 Damyon Wiese\n * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\n\ndefine(['jquery'], function($) {\n\n    /**\n     * UserCourseNavigation\n     *\n     * @param {String} userSelector The selector of the user element.\n     * @param {String} moduleSelector The selector of the module element.\n     * @param {String} baseUrl The base url for the page (no params).\n     * @param {Number} userId The course id\n     * @param {Number} courseId The user id\n     * @param {Number} moduleId The activity module (filter)\n     */\n    var UserCourseNavigation = function(userSelector, moduleSelector, baseUrl, userId, courseId, moduleId) {\n        this._baseUrl = baseUrl;\n        this._userId = userId + '';\n        this._courseId = courseId;\n        this._moduleId = moduleId;\n\n        $(userSelector).on('change', this._userChanged.bind(this));\n        $(moduleSelector).on('change', this._moduleChanged.bind(this));\n    };\n\n    /**\n     * The user was changed in the select list.\n     *\n     * @method _userChanged\n     * @param {Event} e the event\n     */\n    UserCourseNavigation.prototype._userChanged = function(e) {\n        // Note: This change causes a page reload and is intentionally not paired with a js_complete call.\n        M.util.js_pending('report_competency/user_course_navigation:_userChanged');\n        var newUserId = $(e.target).val();\n        var queryStr = '?user=' + newUserId + '&id=' + this._courseId + '&mod=' + this._moduleId;\n        document.location = this._baseUrl + queryStr;\n    };\n\n    /**\n     * The module was changed in the select list.\n     *\n     * @method _moduleChanged\n     * @param {Event} e the event\n     */\n    UserCourseNavigation.prototype._moduleChanged = function(e) {\n        // Note: This change causes a page reload and is intentionally not paired with a js_complete call.\n        M.util.js_pending('report_competency/user_course_navigation:_moduleChanged');\n        var newModuleId = $(e.target).val();\n        var queryStr = '?mod=' + newModuleId + '&id=' + this._courseId + '&user=' + this._userId;\n        document.location = this._baseUrl + queryStr;\n    };\n\n    /** @type {Number} The id of the user. */\n    UserCourseNavigation.prototype._userId = null;\n    /** @type {Number} The id of the module. */\n    UserCourseNavigation.prototype._moduleId = null;\n    /** @type {Number} The id of the course. */\n    UserCourseNavigation.prototype._courseId = null;\n    /** @type {String} Plugin base url. */\n    UserCourseNavigation.prototype._baseUrl = null;\n\n    return /** @alias module:report_competency/user_course_navigation */ UserCourseNavigation;\n\n});\n"],"file":"user_course_navigation.min.js"}