Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
/**
2
 * Provides the Moodle Calendar class.
3
 *
4
 * @module moodle-form-dateselector
5
 */
6
 
7
/**
8
 * A class to overwrite the YUI3 Calendar in order to change the strings..
9
 *
10
 * @class M.form_moodlecalendar
11
 * @constructor
12
 * @extends Calendar
13
 */
14
MOODLECALENDAR = function() {
15
    MOODLECALENDAR.superclass.constructor.apply(this, arguments);
16
};
17
 
18
Y.extend(MOODLECALENDAR, Y.Calendar, {
19
        initializer: function(cfg) {
20
            this.set("strings.very_short_weekdays", cfg.WEEKDAYS_MEDIUM);
21
            this.set("strings.first_weekday", cfg.firstdayofweek);
22
        }
23
    }, {
24
        NAME: 'Calendar',
25
        ATTRS: {}
26
    }
27
);
28
 
29
M.form_moodlecalendar = M.form_moodlecalendar || {};
30
M.form_moodlecalendar.initializer = function(params) {
31
    return new MOODLECALENDAR(params);
32
};