Sindbad~EG File Manager
{"version":3,"file":"adminevents.min.js","sources":["../src/adminevents.js"],"sourcesContent":["/**\n * 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 * @package\n * @author Oscar Nadjar oscar.nadjar@openlms.net\n * @copyright Copyright (c) 2019 Open LMS (https://www.openlms.net)\n * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\n\n/**\n * JS to add a text on the block_calendar_month and block_calendar_upcoming\n * warning that all course events will be loaded only on the core calendar,\n * this only when the $CFG->calendar_adminseesall is true.\n */\ndefine(['jquery', 'core/str'],\n function($, str) {\n return {\n init: function () {\n\n str.get_strings([\n {key : 'admineventwarning', component : 'theme_snap'},\n {key : 'gotocalendarsnap', component : 'theme_snap'},\n ]).done(function(stringsjs) {\n // Add a warning text about the load of event from courses\n $( \".block_calendar_upcoming .gotocal a\").before(\n \"<span>\"+stringsjs[0]+\" </span>\");\n $( \".block_calendar_upcoming .gotocal a\").text(stringsjs[1]);\n $( \".block_calendar_upcoming .gotocal \").addClass(\"alert alert-warning alert-block\");\n $( \".block_calendar_month .card-body\" ).append(\n \"<div class='alleventswarning alert alert-warning alert-block'><span>\"+stringsjs[0]+\n \"<a href='\" + location.origin + \"/calendar/view.php'> \"+ stringsjs[1] + \"</a></span></div>\");\n });\n }\n };\n });\n\n"],"names":["define","$","str","init","get_strings","key","component","done","stringsjs","before","text","addClass","append","location","origin"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA2BAA,gCAAO,CAAC,SAAU,aACd,SAASC,EAAGC,WACD,CACHC,KAAM,WAEFD,IAAIE,YAAY,CACZ,CAACC,IAAM,oBAAqBC,UAAY,cACxC,CAACD,IAAM,mBAAoBC,UAAY,gBACxCC,MAAK,SAASC,WAEbP,EAAG,uCAAuCQ,OACtC,SAASD,UAAU,GAAG,YAC1BP,EAAG,uCAAuCS,KAAKF,UAAU,IACzDP,EAAG,sCAAsCU,SAAS,mCAClDV,EAAG,oCAAqCW,OACpC,uEAAuEJ,UAAU,GACjF,YAAcK,SAASC,OAAS,wBAAyBN,UAAU,GAAK"}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists