Browse Source

Fix some eslint warnings.

MOODLE_34_STABLE
Dan Marsden 8 years ago
parent
commit
eb2065d752
  1. 11
      calendar.js
  2. 2
      yui/src/groupfilter/js/groupfilter.js

11
calendar.js

@ -13,12 +13,17 @@ YUI().use('yui2-container', 'yui2-calendar', function(Y) {
var showBtn = Dom.get("show");
Event.on(showBtn, "click", function() {
/**
* Reset handler and set current day.
*/
function resetHandler() {
calendar.cfg.setProperty("pagedate", calendar.today);
calendar.render();
}
/**
* Close dialog.
*/
function closeHandler() {
dialog.hide();
}
@ -39,8 +44,8 @@ YUI().use('yui2-container', 'yui2-calendar', function(Y) {
dialog = new YAHOO.widget.Dialog("attcalendarcontainer", {
visible: false,
context: ["show", "tl", "bl"],
buttons: [{text: M.str.attendance.caltoday, handler: resetHandler, isDefault: true},
{text: M.str.attendance.calclose, handler: closeHandler}],
buttons: [{text: M.util.get_string('caltoday', 'attendance'), handler: resetHandler, isDefault: true},
{text: M.util.get_string('calclose', 'attendance'), handler: closeHandler}],
draggable: false,
close: false
});

2
yui/src/groupfilter/js/groupfilter.js

@ -1,4 +1,4 @@
/*global M*/
/* global M */
M.mod_attendance = M.mod_attendance || {};
M.mod_attendance.groupfilter = {
groupmappings: null,

Loading…
Cancel
Save