芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/www/cepali/calendar/templates/month_detailed.mustache
{{! This file is part of Moodle - http://moodle.org/ Moodle is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Moodle is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Moodle. If not, see
. }} {{! @template calendar/month_detailed Calendar month view. The purpose of this template is to render the month view. Classes required for JS: * none Data attributes required for JS: * none Example context (json): { } }}
{{> core_calendar/header }} {{> core_calendar/month_navigation }} {{> core/overlay_loading}}
{{# daynames }}
{{shortname}}
{{/ daynames }}
{{#weeks}}
{{#prepadding}}
{{/prepadding}} {{#days}}
{{#hasevents}}
{{mday}}
{{/hasevents}} {{^hasevents}} {{mday}} {{/hasevents}} {{#hasevents}}
{{#events}} {{#underway}}
[{{{name}}}]
{{/underway}} {{^underway}}
{{> core_calendar/event_icon}}
{{{name}}}
{{/underway}} {{/events}}
{{/hasevents}}
{{#hasevents}}
{{mday}}
{{/hasevents}} {{^hasevents}} {{mday}} {{/hasevents}}
{{/days}} {{#postpadding}}
{{/postpadding}}
{{/weeks}}
{{#js}} require([ 'jquery', 'core_calendar/month_view_drag_drop', 'core_calendar/selectors', 'core_calendar/events', ], function( $, DragDrop, CalendarSelectors, CalendarEvents ) { var root = $('#month-detailed-{{uniqid}}'); DragDrop.init(root); $('body').on(CalendarEvents.filterChanged, function(e, data) { M.util.js_pending("month-detailed-{{uniqid}}-filterChanged"); // A filter value has been changed. // Find all matching cells in the popover data, and hide them. var target = $("#month-detailed-{{uniqid}}").find(CalendarSelectors.eventType[data.type]); var transitionPromise = $.Deferred(); if (data.hidden) { transitionPromise.then(function() { return target.slideUp('fast').promise(); }); } else { transitionPromise.then(function() { return target.slideDown('fast').promise(); }); } transitionPromise.then(function() { M.util.js_complete("month-detailed-{{uniqid}}-filterChanged"); return; }); transitionPromise.resolve(); }); }); {{/js}}