%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home2/vacivi36/ava/grade/amd/build/
Upload File :
Create Path :
Current File : //home2/vacivi36/ava/grade/amd/build/edittree_index.min.js.map

{"version":3,"file":"edittree_index.min.js","sources":["../src/edittree_index.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 * Enhance the gradebook tree setup with various facilities.\n *\n * @module     core_grades/edittree_index\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"],"names":["define","$","edittree","on","toggleWeightInput","form","this","closest","find","val","submit","e","preventDefault","node","row","data","prop","enhance"],"mappings":";;;;;;;AAsBAA,oCAAO,CACH,WACD,SAASC,OAMJC,SAAW,WAEXD,EAAE,QAAQE,GAAG,SAAU,kBAAmBD,SAASE,mBAGnDH,EAAE,kBAAkBE,GAAG,UAAU,eACzBE,KAAOJ,EAAEK,MAAMC,QAAQ,QACZF,KAAKG,KAAK,kBAEhBC,IAAI,GACbJ,KAAKK,oBAWbR,SAASE,kBAAoB,SAASO,GAClCA,EAAEC,qBACEC,KAAOZ,EAAEK,MACTQ,IAAMD,KAAKN,QAAQ,MAEvBN,EAAE,sBAAwBa,IAAIC,KAAK,UAAY,MAAMC,KAAK,YAAaH,KAAKG,KAAK,aAG9B,CACnDC,QAASf"}

Zerion Mini Shell 1.0