Your IP : 192.168.165.1


Current Path : C:/Users/Mahmood/Desktop/moodle/grade/amd/build/
Upload File :
Current File : C:/Users/Mahmood/Desktop/moodle/grade/amd/build/edittree_index.min.js.map

{"version":3,"sources":["../src/edittree_index.js"],"names":["define","$","edittree","on","toggleWeightInput","form","closest","bulkmove","find","val","submit","e","preventDefault","node","row","data","prop","enhance"],"mappings":"AAuBAA,OAAM,8BAAC,CACH,QADG,CAAD,CAEH,SAASC,CAAT,CAAY,CAMX,GAAIC,CAAAA,CAAQ,CAAG,UAAW,CAEtBD,CAAC,CAAC,MAAD,CAAD,CAAUE,EAAV,CAAa,QAAb,CAAuB,iBAAvB,CAA0CD,CAAQ,CAACE,iBAAnD,EAGAH,CAAC,CAAC,gBAAD,CAAD,CAAoBE,EAApB,CAAuB,QAAvB,CAAiC,UAAW,CACxC,GAAIE,CAAAA,CAAI,CAAGJ,CAAC,CAAC,IAAD,CAAD,CAAQK,OAAR,CAAgB,MAAhB,CAAX,CACIC,CAAQ,CAAGF,CAAI,CAACG,IAAL,CAAU,gBAAV,CADf,CAGAD,CAAQ,CAACE,GAAT,CAAa,CAAb,EACAJ,CAAI,CAACK,MAAL,EACH,CAND,CAOH,CAZD,CAqBAR,CAAQ,CAACE,iBAAT,CAA6B,SAASO,CAAT,CAAY,CACrCA,CAAC,CAACC,cAAF,GACA,GAAIC,CAAAA,CAAI,CAAGZ,CAAC,CAAC,IAAD,CAAZ,CACIa,CAAG,CAAGD,CAAI,CAACP,OAAL,CAAa,IAAb,CADV,CAGAL,CAAC,CAAC,uBAAwBa,CAAG,CAACC,IAAJ,CAAS,QAAT,CAAxB,CAA6C,KAA9C,CAAD,CAAqDC,IAArD,CAA0D,UAA1D,CAAsE,CAACH,CAAI,CAACG,IAAL,CAAU,SAAV,CAAvE,CACH,CAND,CAQA,MAAuD,CACnDC,OAAO,CAAEf,CAD0C,CAG1D,CAxCK,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 * Enhance the gradebook tree setup with various facilities.\n *\n * @module     core_grades/edittree_index\n * @package    core_grades\n * @copyright  2016 Andrew Nicols <andrew@nicols.co.uk>\n * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\ndefine([\n    'jquery',\n], function($) {\n    /**\n     * Enhance the edittree functionality.\n     *\n     * @method edittree\n     */\n    var edittree = function() {\n        // Watch for the weight override checkboxes.\n        $('body').on('change', '.weightoverride', edittree.toggleWeightInput);\n\n        // Watch changes to the bulk move menu and submit.\n        $('#menumoveafter').on('change', function() {\n            var form = $(this).closest('form'),\n                bulkmove = form.find('#bulkmoveinput');\n\n            bulkmove.val(1);\n            form.submit();\n        });\n    };\n\n    /**\n     * Toggle the weight input field based on its checkbox.\n     *\n     * @method toggleWeightInput\n     * @param {EventFacade} e\n     * @private\n     */\n    edittree.toggleWeightInput = function(e) {\n        e.preventDefault();\n        var node = $(this),\n            row = node.closest('tr');\n\n        $('input[name=\"weight_' + row.data('itemid') + '\"]').prop('disabled', !node.prop('checked'));\n    };\n\n    return /** @alias module:core_grades/edittree_index */ {\n        enhance: edittree\n    };\n});\n"],"file":"edittree_index.min.js"}