Your IP : 192.168.165.1


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

{"version":3,"sources":["../src/edit.js"],"names":["define","$","ajax","str","notification","manager","deleteItem","e","preventDefault","targetUrl","currentTarget","attr","get_strings","key","component","then","s","confirm","window","location","catch","setup","delegate"],"mappings":"AAsBAA,OAAM,qBAAC,CAAC,QAAD,CAAW,WAAX,CAAwB,UAAxB,CAAoC,mBAApC,CAAD,CACN,SAASC,CAAT,CAAYC,CAAZ,CAAkBC,CAAlB,CAAuBC,CAAvB,CAAqC,CACjC,GAAIC,CAAAA,CAAO,CAAG,CACVC,UAAU,CAAE,oBAASC,CAAT,CAAY,CACpBA,CAAC,CAACC,cAAF,GACA,GAAIC,CAAAA,CAAS,CAAGR,CAAC,CAACM,CAAC,CAACG,aAAH,CAAD,CAAmBC,IAAnB,CAAwB,MAAxB,CAAhB,CAEAR,CAAG,CAACS,WAAJ,CAAgB,CACZ,CACIC,GAAG,CAAS,cADhB,CAEIC,SAAS,CAAG,OAFhB,CADY,CAKZ,CACID,GAAG,CAAS,mBADhB,CAEIC,SAAS,CAAG,cAFhB,CALY,CASZ,CACID,GAAG,CAAS,KADhB,CAEIC,SAAS,CAAG,QAFhB,CATY,CAaZ,CACID,GAAG,CAAS,IADhB,CAEIC,SAAS,CAAG,QAFhB,CAbY,CAAhB,EAkBCC,IAlBD,CAkBM,SAASC,CAAT,CAAY,CACdZ,CAAY,CAACa,OAAb,CAAqBD,CAAC,CAAC,CAAD,CAAtB,CAA2BA,CAAC,CAAC,CAAD,CAA5B,CAAiCA,CAAC,CAAC,CAAD,CAAlC,CAAuCA,CAAC,CAAC,CAAD,CAAxC,CAA6C,UAAW,CACpDE,MAAM,CAACC,QAAP,CAAkBV,CACrB,CAFD,CAKH,CAxBD,EAyBCW,KAzBD,EA0BH,CA/BS,CAiCVC,KAAK,CAAE,gBAAW,CACdpB,CAAC,CAAC,MAAD,CAAD,CAAUqB,QAAV,CAAmB,0BAAnB,CAA6C,OAA7C,CAAsDjB,CAAO,CAACC,UAA9D,CACH,CAnCS,CAAd,CAsCA,MAAO,CACHe,KAAK,CAAEhB,CAAO,CAACgB,KADZ,CAGV,CA3CK,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 * Edit items in feedback module\n *\n * @module     mod_feedback/edit\n * @package    mod_feedback\n * @copyright  2016 Marina Glancy\n */\ndefine(['jquery', 'core/ajax', 'core/str', 'core/notification'],\nfunction($, ajax, str, notification) {\n    var manager = {\n        deleteItem: function(e) {\n            e.preventDefault();\n            var targetUrl = $(e.currentTarget).attr('href');\n\n            str.get_strings([\n                {\n                    key:        'confirmation',\n                    component:  'admin'\n                },\n                {\n                    key:        'confirmdeleteitem',\n                    component:  'mod_feedback'\n                },\n                {\n                    key:        'yes',\n                    component:  'moodle'\n                },\n                {\n                    key:        'no',\n                    component:  'moodle'\n                }\n            ])\n            .then(function(s) {\n                notification.confirm(s[0], s[1], s[2], s[3], function() {\n                    window.location = targetUrl;\n                });\n\n                return;\n            })\n            .catch();\n        },\n\n        setup: function() {\n            $('body').delegate('[data-action=\"delete\"]', 'click', manager.deleteItem);\n        }\n    };\n\n    return {\n        setup: manager.setup\n    };\n});\n"],"file":"edit.min.js"}