[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/form/yui/src/dateselector/js/ -> moodlecalendar.js (source)

   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  };


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1