[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
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 var 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 };
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |