1 |
efrain |
1 |
// This file is part of Moodle - http://moodle.org/
|
|
|
2 |
//
|
|
|
3 |
// Moodle is free software: you can redistribute it and/or modify
|
|
|
4 |
// it under the terms of the GNU General Public License as published by
|
|
|
5 |
// the Free Software Foundation, either version 3 of the License, or
|
|
|
6 |
// (at your option) any later version.
|
|
|
7 |
//
|
|
|
8 |
// Moodle is distributed in the hope that it will be useful,
|
|
|
9 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
10 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
11 |
// GNU General Public License for more details.
|
|
|
12 |
//
|
|
|
13 |
// You should have received a copy of the GNU General Public License
|
|
|
14 |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
15 |
|
|
|
16 |
/**
|
|
|
17 |
* CSS selectors for the calendar.
|
|
|
18 |
*
|
|
|
19 |
* @module core_calendar/selectors
|
|
|
20 |
* @copyright 2017 Andrew Nicols <andrew@nicols.co.uk>
|
|
|
21 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
|
22 |
*/
|
|
|
23 |
define([], function() {
|
|
|
24 |
return {
|
|
|
25 |
eventFilterItem: "[data-action='filter-event-type']",
|
|
|
26 |
eventType: {
|
|
|
27 |
site: "[data-eventtype-site]",
|
|
|
28 |
category: "[data-eventtype-category]",
|
|
|
29 |
course: "[data-eventtype-course]",
|
|
|
30 |
group: "[data-eventtype-group]",
|
|
|
31 |
user: "[data-eventtype-user]",
|
|
|
32 |
other: "[data-eventtype-other]",
|
|
|
33 |
},
|
|
|
34 |
popoverType: {
|
|
|
35 |
site: "[data-popover-eventtype-site]",
|
|
|
36 |
category: "[data-popover-eventtype-category]",
|
|
|
37 |
course: "[data-popover-eventtype-course]",
|
|
|
38 |
group: "[data-popover-eventtype-group]",
|
|
|
39 |
user: "[data-popover-eventtype-user]",
|
|
|
40 |
other: "[data-popover-eventtype-other]",
|
|
|
41 |
},
|
|
|
42 |
calendarPeriods: {
|
|
|
43 |
month: "[data-period='month']",
|
|
|
44 |
},
|
|
|
45 |
courseSelector: 'select[name="course"]',
|
|
|
46 |
viewSelector: 'div[data-region="view-selector"]',
|
|
|
47 |
actions: {
|
|
|
48 |
create: '[data-action="new-event-button"]',
|
|
|
49 |
edit: '[data-action="edit"]',
|
|
|
50 |
remove: '[data-action="delete"]',
|
|
|
51 |
viewEvent: '[data-action="view-event"]',
|
|
|
52 |
deleteSubscription: '[data-action="delete-subscription"]',
|
|
|
53 |
},
|
|
|
54 |
elements: {
|
|
|
55 |
courseSelector: 'select[name="course"]',
|
|
|
56 |
dateContainer: '.clickable.hasevent',
|
|
|
57 |
dateContent: '[data-region="day-content"]',
|
|
|
58 |
monthDetailed: '.calendarmonth.calendartable',
|
|
|
59 |
},
|
|
|
60 |
today: '.today',
|
|
|
61 |
day: '[data-region="day"]',
|
|
|
62 |
calendarMain: '[data-region="calendar"]',
|
|
|
63 |
wrapper: '.calendarwrapper',
|
|
|
64 |
eventItem: '[data-type="event"]',
|
|
|
65 |
links: {
|
|
|
66 |
navLink: '.calendarwrapper .arrow_link',
|
|
|
67 |
eventLink: "[data-region='event-item']",
|
|
|
68 |
miniDayLink: "[data-region='mini-day-link']",
|
|
|
69 |
dayLink: "[data-action='view-day-link']",
|
|
|
70 |
},
|
|
|
71 |
containers: {
|
|
|
72 |
loadingIcon: '[data-region="overlay-icon-container"]',
|
|
|
73 |
},
|
|
|
74 |
mainCalendar: '.maincalendar .heightcontainer',
|
|
|
75 |
fullCalendarView: 'page-calendar-view',
|
|
|
76 |
pageHeaderHeadings: '.page-header-headings h1',
|
|
|
77 |
};
|
|
|
78 |
});
|