diff --git a/course/yui/build/moodle-course-dragdrop/moodle-course-dragdrop-debug.js b/course/yui/build/moodle-course-dragdrop/moodle-course-dragdrop-debug.js
index fe94ff078bc..d10c10e8d8f 100644
--- a/course/yui/build/moodle-course-dragdrop/moodle-course-dragdrop-debug.js
+++ b/course/yui/build/moodle-course-dragdrop/moodle-course-dragdrop-debug.js
@@ -1,5 +1,6 @@
YUI.add('moodle-course-dragdrop', function (Y, NAME) {
+/* eslint-disable no-unused-vars */
/**
* Drag and Drop for course sections and course modules.
*
diff --git a/course/yui/build/moodle-course-dragdrop/moodle-course-dragdrop.js b/course/yui/build/moodle-course-dragdrop/moodle-course-dragdrop.js
index 7befde3db8a..76a249b9621 100644
--- a/course/yui/build/moodle-course-dragdrop/moodle-course-dragdrop.js
+++ b/course/yui/build/moodle-course-dragdrop/moodle-course-dragdrop.js
@@ -1,5 +1,6 @@
YUI.add('moodle-course-dragdrop', function (Y, NAME) {
+/* eslint-disable no-unused-vars */
/**
* Drag and Drop for course sections and course modules.
*
diff --git a/course/yui/build/moodle-course-management/moodle-course-management-debug.js b/course/yui/build/moodle-course-management/moodle-course-management-debug.js
index 0b3587a327f..57e0b161fa0 100644
--- a/course/yui/build/moodle-course-management/moodle-course-management-debug.js
+++ b/course/yui/build/moodle-course-management/moodle-course-management-debug.js
@@ -1,5 +1,7 @@
YUI.add('moodle-course-management', function (Y, NAME) {
+/* global DragDrop, Category, Course */
+
/**
* Provides drop down menus for list of action links.
*
@@ -588,6 +590,8 @@ M.course.management.console = null;
M.course.management.init = function(config) {
M.course.management.console = new Console(config);
};
+/* global Console */
+
/**
* Drag and Drop handler
*
@@ -1173,6 +1177,8 @@ Item.prototype = {
}
};
Y.extend(Item, Y.Base, Item.prototype);
+/* global Item */
+
/**
* A managed category.
*
@@ -1616,6 +1622,8 @@ Category.prototype = {
}
};
Y.extend(Category, Item, Category.prototype);
+/* global Item */
+
/**
* A managed course.
*
diff --git a/course/yui/build/moodle-course-management/moodle-course-management.js b/course/yui/build/moodle-course-management/moodle-course-management.js
index 883b96495a2..35520d1c003 100644
--- a/course/yui/build/moodle-course-management/moodle-course-management.js
+++ b/course/yui/build/moodle-course-management/moodle-course-management.js
@@ -1,5 +1,7 @@
YUI.add('moodle-course-management', function (Y, NAME) {
+/* global DragDrop, Category, Course */
+
/**
* Provides drop down menus for list of action links.
*
@@ -581,6 +583,8 @@ M.course.management.console = null;
M.course.management.init = function(config) {
M.course.management.console = new Console(config);
};
+/* global Console */
+
/**
* Drag and Drop handler
*
@@ -1147,6 +1151,8 @@ Item.prototype = {
}
};
Y.extend(Item, Y.Base, Item.prototype);
+/* global Item */
+
/**
* A managed category.
*
@@ -1575,6 +1581,8 @@ Category.prototype = {
}
};
Y.extend(Category, Item, Category.prototype);
+/* global Item */
+
/**
* A managed course.
*
diff --git a/course/yui/build/moodle-course-toolboxes/moodle-course-toolboxes-debug.js b/course/yui/build/moodle-course-toolboxes/moodle-course-toolboxes-debug.js
index 212e98d8f84..4d7656b2620 100644
--- a/course/yui/build/moodle-course-toolboxes/moodle-course-toolboxes-debug.js
+++ b/course/yui/build/moodle-course-toolboxes/moodle-course-toolboxes-debug.js
@@ -1,5 +1,6 @@
YUI.add('moodle-course-toolboxes', function (Y, NAME) {
+/* eslint-disable no-unused-vars */
/**
* Resource and activity toolbox class.
*
@@ -198,6 +199,7 @@ Y.extend(TOOLBOX, Y.Base, {
}
}
);
+/* global TOOLBOX, BODY, SELECTOR, INDENTLIMITS */
/**
* Resource and activity toolbox class.
@@ -749,6 +751,8 @@ M.course.init_resource_toolbox = function(config) {
M.course.resource_toolbox = new RESOURCETOOLBOX(config);
return M.course.resource_toolbox;
};
+/* global SELECTOR, TOOLBOX */
+
/**
* Resource and activity toolbox class.
*
diff --git a/course/yui/build/moodle-course-toolboxes/moodle-course-toolboxes.js b/course/yui/build/moodle-course-toolboxes/moodle-course-toolboxes.js
index 212e98d8f84..4d7656b2620 100644
--- a/course/yui/build/moodle-course-toolboxes/moodle-course-toolboxes.js
+++ b/course/yui/build/moodle-course-toolboxes/moodle-course-toolboxes.js
@@ -1,5 +1,6 @@
YUI.add('moodle-course-toolboxes', function (Y, NAME) {
+/* eslint-disable no-unused-vars */
/**
* Resource and activity toolbox class.
*
@@ -198,6 +199,7 @@ Y.extend(TOOLBOX, Y.Base, {
}
}
);
+/* global TOOLBOX, BODY, SELECTOR, INDENTLIMITS */
/**
* Resource and activity toolbox class.
@@ -749,6 +751,8 @@ M.course.init_resource_toolbox = function(config) {
M.course.resource_toolbox = new RESOURCETOOLBOX(config);
return M.course.resource_toolbox;
};
+/* global SELECTOR, TOOLBOX */
+
/**
* Resource and activity toolbox class.
*
diff --git a/course/yui/src/dragdrop/js/dragdrop.js b/course/yui/src/dragdrop/js/dragdrop.js
index 00b30d4a493..b1e3ef5d999 100644
--- a/course/yui/src/dragdrop/js/dragdrop.js
+++ b/course/yui/src/dragdrop/js/dragdrop.js
@@ -1,3 +1,4 @@
+/* eslint-disable no-unused-vars */
/**
* Drag and Drop for course sections and course modules.
*
diff --git a/course/yui/src/management/js/category.js b/course/yui/src/management/js/category.js
index b7fac22f31a..889ccec1eea 100644
--- a/course/yui/src/management/js/category.js
+++ b/course/yui/src/management/js/category.js
@@ -1,3 +1,5 @@
+/* global Item */
+
/**
* A managed category.
*
diff --git a/course/yui/src/management/js/console.js b/course/yui/src/management/js/console.js
index 0a00ab195f1..12ca9be57f2 100644
--- a/course/yui/src/management/js/console.js
+++ b/course/yui/src/management/js/console.js
@@ -1,3 +1,5 @@
+/* global DragDrop, Category, Course */
+
/**
* Provides drop down menus for list of action links.
*
diff --git a/course/yui/src/management/js/course.js b/course/yui/src/management/js/course.js
index 474180a30a6..893b21c7fe7 100644
--- a/course/yui/src/management/js/course.js
+++ b/course/yui/src/management/js/course.js
@@ -1,3 +1,5 @@
+/* global Item */
+
/**
* A managed course.
*
diff --git a/course/yui/src/management/js/dd.js b/course/yui/src/management/js/dd.js
index 3ad3e0f9f37..f622d29fec7 100644
--- a/course/yui/src/management/js/dd.js
+++ b/course/yui/src/management/js/dd.js
@@ -1,3 +1,5 @@
+/* global Console */
+
/**
* Drag and Drop handler
*
diff --git a/course/yui/src/toolboxes/js/resource.js b/course/yui/src/toolboxes/js/resource.js
index f475b89401d..4d87574f04c 100644
--- a/course/yui/src/toolboxes/js/resource.js
+++ b/course/yui/src/toolboxes/js/resource.js
@@ -1,3 +1,5 @@
+/* global TOOLBOX, BODY, SELECTOR, INDENTLIMITS */
+
/**
* Resource and activity toolbox class.
*
diff --git a/course/yui/src/toolboxes/js/section.js b/course/yui/src/toolboxes/js/section.js
index fe9b84ec419..a28ca9ae659 100644
--- a/course/yui/src/toolboxes/js/section.js
+++ b/course/yui/src/toolboxes/js/section.js
@@ -1,3 +1,5 @@
+/* global SELECTOR, TOOLBOX */
+
/**
* Resource and activity toolbox class.
*
diff --git a/course/yui/src/toolboxes/js/toolbox.js b/course/yui/src/toolboxes/js/toolbox.js
index e3f6c8a7833..019b3595767 100644
--- a/course/yui/src/toolboxes/js/toolbox.js
+++ b/course/yui/src/toolboxes/js/toolbox.js
@@ -1,3 +1,4 @@
+/* eslint-disable no-unused-vars */
/**
* Resource and activity toolbox class.
*
@@ -196,4 +197,3 @@ Y.extend(TOOLBOX, Y.Base, {
}
}
);
-
diff --git a/grade/report/grader/yui/build/moodle-gradereport_grader-gradereporttable/moodle-gradereport_grader-gradereporttable-debug.js b/grade/report/grader/yui/build/moodle-gradereport_grader-gradereporttable/moodle-gradereport_grader-gradereporttable-debug.js
index c185c233c11..e3a184c1b6a 100644
--- a/grade/report/grader/yui/build/moodle-gradereport_grader-gradereporttable/moodle-gradereport_grader-gradereporttable-debug.js
+++ b/grade/report/grader/yui/build/moodle-gradereport_grader-gradereporttable/moodle-gradereport_grader-gradereporttable-debug.js
@@ -14,6 +14,7 @@ YUI.add('moodle-gradereport_grader-gradereporttable', function (Y, NAME) {
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* eslint-disable no-unused-vars */
/**
* Grader Report Functionality.
@@ -155,6 +156,7 @@ Y.namespace('M.gradereport_grader').init = function(config) {
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global SELECTORS */
/**
* @module moodle-gradereport_grader-gradereporttable
diff --git a/grade/report/grader/yui/build/moodle-gradereport_grader-gradereporttable/moodle-gradereport_grader-gradereporttable.js b/grade/report/grader/yui/build/moodle-gradereport_grader-gradereporttable/moodle-gradereport_grader-gradereporttable.js
index ac3695386e3..f9fa8f6b1d2 100644
--- a/grade/report/grader/yui/build/moodle-gradereport_grader-gradereporttable/moodle-gradereport_grader-gradereporttable.js
+++ b/grade/report/grader/yui/build/moodle-gradereport_grader-gradereporttable/moodle-gradereport_grader-gradereporttable.js
@@ -14,6 +14,7 @@ YUI.add('moodle-gradereport_grader-gradereporttable', function (Y, NAME) {
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* eslint-disable no-unused-vars */
/**
* Grader Report Functionality.
@@ -155,6 +156,7 @@ Y.namespace('M.gradereport_grader').init = function(config) {
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global SELECTORS */
/**
* @module moodle-gradereport_grader-gradereporttable
diff --git a/grade/report/grader/yui/src/gradereporttable/js/floatingheaders.js b/grade/report/grader/yui/src/gradereporttable/js/floatingheaders.js
index a57aed8772b..4343ba7b4bc 100644
--- a/grade/report/grader/yui/src/gradereporttable/js/floatingheaders.js
+++ b/grade/report/grader/yui/src/gradereporttable/js/floatingheaders.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global SELECTORS */
/**
* @module moodle-gradereport_grader-gradereporttable
diff --git a/grade/report/grader/yui/src/gradereporttable/js/gradereporttable.js b/grade/report/grader/yui/src/gradereporttable/js/gradereporttable.js
index bbdbd8fba10..8cc3e1088ad 100644
--- a/grade/report/grader/yui/src/gradereporttable/js/gradereporttable.js
+++ b/grade/report/grader/yui/src/gradereporttable/js/gradereporttable.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* eslint-disable no-unused-vars */
/**
* Grader Report Functionality.
diff --git a/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-debug.js b/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-debug.js
index e7f579c11fe..5f1c61a16ad 100644
--- a/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-debug.js
+++ b/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-debug.js
@@ -14,6 +14,7 @@ YUI.add('moodle-editor_atto-editor', function (Y, NAME) {
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* eslint-disable no-unused-vars */
/**
* The Atto WYSIWG pluggable editor, written for Moodle.
@@ -735,6 +736,8 @@ Y.Base.mix(Y.M.editor_atto.Editor, [EditorTextArea]);
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global NOTIFY_WARNING, NOTIFY_INFO */
+/* eslint-disable no-unused-vars */
/**
* A autosave function for the Atto editor.
@@ -1255,6 +1258,7 @@ Y.Base.mix(Y.M.editor_atto.Editor, [EditorAutosaveIo]);
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global LOGNAME */
/**
* @module moodle-editor_atto-editor
@@ -1902,6 +1906,7 @@ Y.Base.mix(Y.M.editor_atto.Editor, [EditorToolbar]);
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global LOGNAME */
/**
* @module moodle-editor_atto-editor
@@ -2110,6 +2115,7 @@ Y.Base.mix(Y.M.editor_atto.Editor, [EditorToolbarNav]);
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global rangy */
/**
* @module moodle-editor_atto-editor
@@ -2530,6 +2536,7 @@ Y.Base.mix(Y.M.editor_atto.Editor, [EditorSelection]);
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global rangy */
/**
* @module moodle-editor_atto-editor
diff --git a/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor.js b/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor.js
index a76b07efe23..2ce7c724d85 100644
--- a/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor.js
+++ b/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor.js
@@ -14,6 +14,7 @@ YUI.add('moodle-editor_atto-editor', function (Y, NAME) {
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* eslint-disable no-unused-vars */
/**
* The Atto WYSIWG pluggable editor, written for Moodle.
@@ -730,6 +731,8 @@ Y.Base.mix(Y.M.editor_atto.Editor, [EditorTextArea]);
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global NOTIFY_WARNING, NOTIFY_INFO */
+/* eslint-disable no-unused-vars */
/**
* A autosave function for the Atto editor.
@@ -1244,6 +1247,7 @@ Y.Base.mix(Y.M.editor_atto.Editor, [EditorAutosaveIo]);
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global LOGNAME */
/**
* @module moodle-editor_atto-editor
@@ -1890,6 +1894,7 @@ Y.Base.mix(Y.M.editor_atto.Editor, [EditorToolbar]);
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global LOGNAME */
/**
* @module moodle-editor_atto-editor
@@ -2096,6 +2101,7 @@ Y.Base.mix(Y.M.editor_atto.Editor, [EditorToolbarNav]);
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global rangy */
/**
* @module moodle-editor_atto-editor
@@ -2516,6 +2522,7 @@ Y.Base.mix(Y.M.editor_atto.Editor, [EditorSelection]);
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global rangy */
/**
* @module moodle-editor_atto-editor
diff --git a/lib/editor/atto/yui/build/moodle-editor_atto-plugin/moodle-editor_atto-plugin-debug.js b/lib/editor/atto/yui/build/moodle-editor_atto-plugin/moodle-editor_atto-plugin-debug.js
index 41e53ad5c39..73ae0b57946 100644
--- a/lib/editor/atto/yui/build/moodle-editor_atto-plugin/moodle-editor_atto-plugin-debug.js
+++ b/lib/editor/atto/yui/build/moodle-editor_atto-plugin/moodle-editor_atto-plugin-debug.js
@@ -162,6 +162,7 @@ Y.namespace('M.editor_atto').EditorPlugin = EditorPlugin;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global YUI */
/**
* @module moodle-editor_atto-plugin
diff --git a/lib/editor/atto/yui/build/moodle-editor_atto-plugin/moodle-editor_atto-plugin.js b/lib/editor/atto/yui/build/moodle-editor_atto-plugin/moodle-editor_atto-plugin.js
index e436da555c7..60964756917 100644
--- a/lib/editor/atto/yui/build/moodle-editor_atto-plugin/moodle-editor_atto-plugin.js
+++ b/lib/editor/atto/yui/build/moodle-editor_atto-plugin/moodle-editor_atto-plugin.js
@@ -162,6 +162,7 @@ Y.namespace('M.editor_atto').EditorPlugin = EditorPlugin;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global YUI */
/**
* @module moodle-editor_atto-plugin
diff --git a/lib/editor/atto/yui/src/editor/js/autosave.js b/lib/editor/atto/yui/src/editor/js/autosave.js
index 039c5f0a246..94305570e42 100644
--- a/lib/editor/atto/yui/src/editor/js/autosave.js
+++ b/lib/editor/atto/yui/src/editor/js/autosave.js
@@ -12,6 +12,8 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global NOTIFY_WARNING, NOTIFY_INFO */
+/* eslint-disable no-unused-vars */
/**
* A autosave function for the Atto editor.
diff --git a/lib/editor/atto/yui/src/editor/js/clean.js b/lib/editor/atto/yui/src/editor/js/clean.js
index 7a7b1a872c7..79be551cded 100644
--- a/lib/editor/atto/yui/src/editor/js/clean.js
+++ b/lib/editor/atto/yui/src/editor/js/clean.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global LOGNAME */
/**
* @module moodle-editor_atto-editor
diff --git a/lib/editor/atto/yui/src/editor/js/editor-plugin-buttons.js b/lib/editor/atto/yui/src/editor/js/editor-plugin-buttons.js
index b7f5effdbf9..5048ddf98b8 100644
--- a/lib/editor/atto/yui/src/editor/js/editor-plugin-buttons.js
+++ b/lib/editor/atto/yui/src/editor/js/editor-plugin-buttons.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global YUI */
/**
* @module moodle-editor_atto-plugin
diff --git a/lib/editor/atto/yui/src/editor/js/editor.js b/lib/editor/atto/yui/src/editor/js/editor.js
index 8089a1185af..cba883977fd 100644
--- a/lib/editor/atto/yui/src/editor/js/editor.js
+++ b/lib/editor/atto/yui/src/editor/js/editor.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* eslint-disable no-unused-vars */
/**
* The Atto WYSIWG pluggable editor, written for Moodle.
diff --git a/lib/editor/atto/yui/src/editor/js/selection.js b/lib/editor/atto/yui/src/editor/js/selection.js
index 3f6c4609d27..077794e01b5 100644
--- a/lib/editor/atto/yui/src/editor/js/selection.js
+++ b/lib/editor/atto/yui/src/editor/js/selection.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global rangy */
/**
* @module moodle-editor_atto-editor
diff --git a/lib/editor/atto/yui/src/editor/js/styling.js b/lib/editor/atto/yui/src/editor/js/styling.js
index 6c31d81cc80..3e5c1a46ab4 100644
--- a/lib/editor/atto/yui/src/editor/js/styling.js
+++ b/lib/editor/atto/yui/src/editor/js/styling.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global rangy */
/**
* @module moodle-editor_atto-editor
diff --git a/lib/editor/atto/yui/src/editor/js/toolbar-keyboardnav.js b/lib/editor/atto/yui/src/editor/js/toolbar-keyboardnav.js
index 3c056a3d4f0..26cf46e3dc6 100644
--- a/lib/editor/atto/yui/src/editor/js/toolbar-keyboardnav.js
+++ b/lib/editor/atto/yui/src/editor/js/toolbar-keyboardnav.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global LOGNAME */
/**
* @module moodle-editor_atto-editor
diff --git a/lib/form/yui/build/moodle-form-dateselector/moodle-form-dateselector-debug.js b/lib/form/yui/build/moodle-form-dateselector/moodle-form-dateselector-debug.js
index 3c6e0271e0e..a9831d99230 100644
--- a/lib/form/yui/build/moodle-form-dateselector/moodle-form-dateselector-debug.js
+++ b/lib/form/yui/build/moodle-form-dateselector/moodle-form-dateselector-debug.js
@@ -1,5 +1,7 @@
YUI.add('moodle-form-dateselector', function (Y, NAME) {
+/* global CALENDAR, MOODLECALENDAR */
+
/**
* Add some custom methods to the node class to make our lives a little
* easier within this module.
diff --git a/lib/form/yui/build/moodle-form-dateselector/moodle-form-dateselector.js b/lib/form/yui/build/moodle-form-dateselector/moodle-form-dateselector.js
index 3c6e0271e0e..a9831d99230 100644
--- a/lib/form/yui/build/moodle-form-dateselector/moodle-form-dateselector.js
+++ b/lib/form/yui/build/moodle-form-dateselector/moodle-form-dateselector.js
@@ -1,5 +1,7 @@
YUI.add('moodle-form-dateselector', function (Y, NAME) {
+/* global CALENDAR, MOODLECALENDAR */
+
/**
* Add some custom methods to the node class to make our lives a little
* easier within this module.
diff --git a/lib/form/yui/src/dateselector/js/dateselector.js b/lib/form/yui/src/dateselector/js/dateselector.js
index a0b09a4902b..aa9c4fbc259 100644
--- a/lib/form/yui/src/dateselector/js/dateselector.js
+++ b/lib/form/yui/src/dateselector/js/dateselector.js
@@ -1,3 +1,5 @@
+/* global CALENDAR, MOODLECALENDAR */
+
/**
* Add some custom methods to the node class to make our lives a little
* easier within this module.
diff --git a/lib/yui/build/moodle-core-blocks/moodle-core-blocks-debug.js b/lib/yui/build/moodle-core-blocks/moodle-core-blocks-debug.js
index bf0bb933d15..f0fc38acb87 100644
--- a/lib/yui/build/moodle-core-blocks/moodle-core-blocks-debug.js
+++ b/lib/yui/build/moodle-core-blocks/moodle-core-blocks-debug.js
@@ -1,5 +1,7 @@
YUI.add('moodle-core-blocks', function (Y, NAME) {
+/* global MANAGER */
+
/**
* Provides drag and drop functionality for blocks.
*
@@ -386,6 +388,8 @@ M.core_blocks = M.core_blocks || {};
M.core_blocks.init_dragdrop = function(params) {
M.core.blockdraganddrop.init(params);
};
+/* global BLOCKREGION, SELECTOR, AJAXURL */
+
/**
* This file contains the drag and drop manager class.
*
@@ -789,6 +793,8 @@ Y.extend(MANAGER, M.core.dragdrop, MANAGER.prototype, {
}
}
});
+/* global MANAGER */
+
/**
* This file contains the Block Region class used by the drag and drop manager.
*
diff --git a/lib/yui/build/moodle-core-blocks/moodle-core-blocks.js b/lib/yui/build/moodle-core-blocks/moodle-core-blocks.js
index 5deddfcc242..81585d122ea 100644
--- a/lib/yui/build/moodle-core-blocks/moodle-core-blocks.js
+++ b/lib/yui/build/moodle-core-blocks/moodle-core-blocks.js
@@ -1,5 +1,7 @@
YUI.add('moodle-core-blocks', function (Y, NAME) {
+/* global MANAGER */
+
/**
* Provides drag and drop functionality for blocks.
*
@@ -383,6 +385,8 @@ M.core_blocks = M.core_blocks || {};
M.core_blocks.init_dragdrop = function(params) {
M.core.blockdraganddrop.init(params);
};
+/* global BLOCKREGION, SELECTOR, AJAXURL */
+
/**
* This file contains the drag and drop manager class.
*
@@ -784,6 +788,8 @@ Y.extend(MANAGER, M.core.dragdrop, MANAGER.prototype, {
}
}
});
+/* global MANAGER */
+
/**
* This file contains the Block Region class used by the drag and drop manager.
*
diff --git a/lib/yui/build/moodle-core-dock/moodle-core-dock-debug.js b/lib/yui/build/moodle-core-dock/moodle-core-dock-debug.js
index 6d060fb6015..b41f36df1df 100644
--- a/lib/yui/build/moodle-core-dock/moodle-core-dock-debug.js
+++ b/lib/yui/build/moodle-core-dock/moodle-core-dock-debug.js
@@ -8,7 +8,6 @@ YUI.add('moodle-core-dock', function (Y, NAME) {
* @module moodle-core-dock
*/
-
var LOGNS = 'moodle-core-dock',
BODY = Y.one(Y.config.doc.body),
CSS = {
@@ -34,7 +33,7 @@ var LOGNS = 'moodle-core-dock',
DOCKPANEL,
TABHEIGHTMANAGER,
BLOCK,
- DOCKEDITEM;
+ DOCKEDITEM; // eslint-disable-line no-unused-vars
M.core = M.core || {};
M.core.dock = M.core.dock || {};
@@ -1159,6 +1158,8 @@ Y.extend(DOCK, Y.Base, DOCK.prototype, {
}
});
Y.augment(DOCK, Y.EventTarget);
+/* global DOCKPANEL, LOGNS */
+
/**
* Dock JS.
*
@@ -1395,6 +1396,8 @@ Y.extend(DOCKPANEL, Y.Base, DOCKPANEL.prototype, {
}
});
Y.augment(DOCKPANEL, Y.EventTarget);
+/* global TABHEIGHTMANAGER, LOGNS */
+
/**
* Dock JS.
*
@@ -1635,6 +1638,8 @@ Y.Event.define("dock:actionkey", {
sub._delegateDetacher.detach();
}
});
+/* global BLOCK, LOGNS, DOCKEDITEM */
+
/**
* Dock JS.
*
@@ -1879,6 +1884,8 @@ Y.extend(BLOCK, Y.Base, BLOCK.prototype, {
}
}
});
+/* global LOGNS, DOCKEDITEM */
+
/**
* Dock JS.
*
diff --git a/lib/yui/build/moodle-core-dock/moodle-core-dock.js b/lib/yui/build/moodle-core-dock/moodle-core-dock.js
index 35bb1e3c198..8c1be7e5313 100644
--- a/lib/yui/build/moodle-core-dock/moodle-core-dock.js
+++ b/lib/yui/build/moodle-core-dock/moodle-core-dock.js
@@ -8,7 +8,6 @@ YUI.add('moodle-core-dock', function (Y, NAME) {
* @module moodle-core-dock
*/
-
var LOGNS = 'moodle-core-dock',
BODY = Y.one(Y.config.doc.body),
CSS = {
@@ -34,7 +33,7 @@ var LOGNS = 'moodle-core-dock',
DOCKPANEL,
TABHEIGHTMANAGER,
BLOCK,
- DOCKEDITEM;
+ DOCKEDITEM; // eslint-disable-line no-unused-vars
M.core = M.core || {};
M.core.dock = M.core.dock || {};
@@ -1146,6 +1145,8 @@ Y.extend(DOCK, Y.Base, DOCK.prototype, {
}
});
Y.augment(DOCK, Y.EventTarget);
+/* global DOCKPANEL, LOGNS */
+
/**
* Dock JS.
*
@@ -1381,6 +1382,8 @@ Y.extend(DOCKPANEL, Y.Base, DOCKPANEL.prototype, {
}
});
Y.augment(DOCKPANEL, Y.EventTarget);
+/* global TABHEIGHTMANAGER, LOGNS */
+
/**
* Dock JS.
*
@@ -1620,6 +1623,8 @@ Y.Event.define("dock:actionkey", {
sub._delegateDetacher.detach();
}
});
+/* global BLOCK, LOGNS, DOCKEDITEM */
+
/**
* Dock JS.
*
@@ -1861,6 +1866,8 @@ Y.extend(BLOCK, Y.Base, BLOCK.prototype, {
}
}
});
+/* global LOGNS, DOCKEDITEM */
+
/**
* Dock JS.
*
diff --git a/lib/yui/build/moodle-core-languninstallconfirm/moodle-core-languninstallconfirm-debug.js b/lib/yui/build/moodle-core-languninstallconfirm/moodle-core-languninstallconfirm-debug.js
index 93c4c97d181..f0568c9ed1d 100644
--- a/lib/yui/build/moodle-core-languninstallconfirm/moodle-core-languninstallconfirm-debug.js
+++ b/lib/yui/build/moodle-core-languninstallconfirm/moodle-core-languninstallconfirm-debug.js
@@ -1,5 +1,7 @@
YUI.add('moodle-core-languninstallconfirm', function (Y, NAME) {
+/* global NAME */
+
/**
* Home for a Confirmation class.
*
diff --git a/lib/yui/build/moodle-core-languninstallconfirm/moodle-core-languninstallconfirm.js b/lib/yui/build/moodle-core-languninstallconfirm/moodle-core-languninstallconfirm.js
index 93c4c97d181..f0568c9ed1d 100644
--- a/lib/yui/build/moodle-core-languninstallconfirm/moodle-core-languninstallconfirm.js
+++ b/lib/yui/build/moodle-core-languninstallconfirm/moodle-core-languninstallconfirm.js
@@ -1,5 +1,7 @@
YUI.add('moodle-core-languninstallconfirm', function (Y, NAME) {
+/* global NAME */
+
/**
* Home for a Confirmation class.
*
diff --git a/lib/yui/build/moodle-core-notification-ajaxexception/moodle-core-notification-ajaxexception-debug.js b/lib/yui/build/moodle-core-notification-ajaxexception/moodle-core-notification-ajaxexception-debug.js
index 7304e92775d..c7c45fd26c2 100644
--- a/lib/yui/build/moodle-core-notification-ajaxexception/moodle-core-notification-ajaxexception-debug.js
+++ b/lib/yui/build/moodle-core-notification-ajaxexception/moodle-core-notification-ajaxexception-debug.js
@@ -1,5 +1,6 @@
YUI.add('moodle-core-notification-ajaxexception', function (Y, NAME) {
+/* eslint-disable no-unused-vars, no-unused-expressions */
var DIALOGUE_PREFIX,
BASE,
CONFIRMYES,
@@ -27,6 +28,8 @@ CSS = {
// Set up the namespace once.
M.core = M.core || {};
+/* global BASE, DIALOGUE_PREFIX */
+
/**
* A dialogue type designed to display an appropriate error when an error
* thrown in the Moodle codebase was reported during an AJAX request.
diff --git a/lib/yui/build/moodle-core-notification-ajaxexception/moodle-core-notification-ajaxexception.js b/lib/yui/build/moodle-core-notification-ajaxexception/moodle-core-notification-ajaxexception.js
index 7304e92775d..c7c45fd26c2 100644
--- a/lib/yui/build/moodle-core-notification-ajaxexception/moodle-core-notification-ajaxexception.js
+++ b/lib/yui/build/moodle-core-notification-ajaxexception/moodle-core-notification-ajaxexception.js
@@ -1,5 +1,6 @@
YUI.add('moodle-core-notification-ajaxexception', function (Y, NAME) {
+/* eslint-disable no-unused-vars, no-unused-expressions */
var DIALOGUE_PREFIX,
BASE,
CONFIRMYES,
@@ -27,6 +28,8 @@ CSS = {
// Set up the namespace once.
M.core = M.core || {};
+/* global BASE, DIALOGUE_PREFIX */
+
/**
* A dialogue type designed to display an appropriate error when an error
* thrown in the Moodle codebase was reported during an AJAX request.
diff --git a/lib/yui/build/moodle-core-notification-alert/moodle-core-notification-alert-debug.js b/lib/yui/build/moodle-core-notification-alert/moodle-core-notification-alert-debug.js
index 1fa77324b20..7c299a71f2d 100644
--- a/lib/yui/build/moodle-core-notification-alert/moodle-core-notification-alert-debug.js
+++ b/lib/yui/build/moodle-core-notification-alert/moodle-core-notification-alert-debug.js
@@ -1,5 +1,6 @@
YUI.add('moodle-core-notification-alert', function (Y, NAME) {
+/* eslint-disable no-unused-vars, no-unused-expressions */
var DIALOGUE_PREFIX,
BASE,
CONFIRMYES,
@@ -27,6 +28,8 @@ CSS = {
// Set up the namespace once.
M.core = M.core || {};
+/* global BASE, TITLE, CONFIRMYES, DIALOGUE_PREFIX */
+
/**
* A dialogue type designed to display an alert to the user.
*
diff --git a/lib/yui/build/moodle-core-notification-alert/moodle-core-notification-alert.js b/lib/yui/build/moodle-core-notification-alert/moodle-core-notification-alert.js
index 1fa77324b20..7c299a71f2d 100644
--- a/lib/yui/build/moodle-core-notification-alert/moodle-core-notification-alert.js
+++ b/lib/yui/build/moodle-core-notification-alert/moodle-core-notification-alert.js
@@ -1,5 +1,6 @@
YUI.add('moodle-core-notification-alert', function (Y, NAME) {
+/* eslint-disable no-unused-vars, no-unused-expressions */
var DIALOGUE_PREFIX,
BASE,
CONFIRMYES,
@@ -27,6 +28,8 @@ CSS = {
// Set up the namespace once.
M.core = M.core || {};
+/* global BASE, TITLE, CONFIRMYES, DIALOGUE_PREFIX */
+
/**
* A dialogue type designed to display an alert to the user.
*
diff --git a/lib/yui/build/moodle-core-notification-confirm/moodle-core-notification-confirm-debug.js b/lib/yui/build/moodle-core-notification-confirm/moodle-core-notification-confirm-debug.js
index 459e5951b67..8f309358e5b 100644
--- a/lib/yui/build/moodle-core-notification-confirm/moodle-core-notification-confirm-debug.js
+++ b/lib/yui/build/moodle-core-notification-confirm/moodle-core-notification-confirm-debug.js
@@ -1,5 +1,6 @@
YUI.add('moodle-core-notification-confirm', function (Y, NAME) {
+/* eslint-disable no-unused-vars, no-unused-expressions */
var DIALOGUE_PREFIX,
BASE,
CONFIRMYES,
@@ -27,6 +28,8 @@ CSS = {
// Set up the namespace once.
M.core = M.core || {};
+/* global CONFIRMYES, CONFIRMNO, QUESTION, BASE, TITLE, DIALOGUE_PREFIX */
+
/**
* A dialogue type designed to display a confirmation to the user.
*
diff --git a/lib/yui/build/moodle-core-notification-confirm/moodle-core-notification-confirm.js b/lib/yui/build/moodle-core-notification-confirm/moodle-core-notification-confirm.js
index 459e5951b67..8f309358e5b 100644
--- a/lib/yui/build/moodle-core-notification-confirm/moodle-core-notification-confirm.js
+++ b/lib/yui/build/moodle-core-notification-confirm/moodle-core-notification-confirm.js
@@ -1,5 +1,6 @@
YUI.add('moodle-core-notification-confirm', function (Y, NAME) {
+/* eslint-disable no-unused-vars, no-unused-expressions */
var DIALOGUE_PREFIX,
BASE,
CONFIRMYES,
@@ -27,6 +28,8 @@ CSS = {
// Set up the namespace once.
M.core = M.core || {};
+/* global CONFIRMYES, CONFIRMNO, QUESTION, BASE, TITLE, DIALOGUE_PREFIX */
+
/**
* A dialogue type designed to display a confirmation to the user.
*
diff --git a/lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-debug.js b/lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-debug.js
index 86f372cba1c..e385329bdeb 100644
--- a/lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-debug.js
+++ b/lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-debug.js
@@ -1,5 +1,6 @@
YUI.add('moodle-core-notification-dialogue', function (Y, NAME) {
+/* eslint-disable no-unused-vars, no-unused-expressions */
var DIALOGUE_PREFIX,
BASE,
CONFIRMYES,
@@ -27,6 +28,8 @@ CSS = {
// Set up the namespace once.
M.core = M.core || {};
+/* global DIALOGUE_PREFIX, BASE */
+
/**
* The generic dialogue class for use in Moodle.
*
@@ -744,6 +747,8 @@ Y.Base.modifyAttrs(DIALOGUE, {
Y.Base.mix(DIALOGUE, [Y.M.core.WidgetFocusAfterHide]);
M.core.dialogue = DIALOGUE;
+/* global DIALOGUE_PREFIX */
+
/**
* A dialogue type designed to display informative messages to users.
*
diff --git a/lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue.js b/lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue.js
index 26caaf2a363..78d4e12996c 100644
--- a/lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue.js
+++ b/lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue.js
@@ -1,5 +1,6 @@
YUI.add('moodle-core-notification-dialogue', function (Y, NAME) {
+/* eslint-disable no-unused-vars, no-unused-expressions */
var DIALOGUE_PREFIX,
BASE,
CONFIRMYES,
@@ -27,6 +28,8 @@ CSS = {
// Set up the namespace once.
M.core = M.core || {};
+/* global DIALOGUE_PREFIX, BASE */
+
/**
* The generic dialogue class for use in Moodle.
*
@@ -741,6 +744,8 @@ Y.Base.modifyAttrs(DIALOGUE, {
Y.Base.mix(DIALOGUE, [Y.M.core.WidgetFocusAfterHide]);
M.core.dialogue = DIALOGUE;
+/* global DIALOGUE_PREFIX */
+
/**
* A dialogue type designed to display informative messages to users.
*
diff --git a/lib/yui/build/moodle-core-notification-exception/moodle-core-notification-exception-debug.js b/lib/yui/build/moodle-core-notification-exception/moodle-core-notification-exception-debug.js
index d386bcfeacc..56434679b50 100644
--- a/lib/yui/build/moodle-core-notification-exception/moodle-core-notification-exception-debug.js
+++ b/lib/yui/build/moodle-core-notification-exception/moodle-core-notification-exception-debug.js
@@ -1,5 +1,6 @@
YUI.add('moodle-core-notification-exception', function (Y, NAME) {
+/* eslint-disable no-unused-vars, no-unused-expressions */
var DIALOGUE_PREFIX,
BASE,
CONFIRMYES,
@@ -27,6 +28,8 @@ CSS = {
// Set up the namespace once.
M.core = M.core || {};
+/* global BASE, DIALOGUE_PREFIX */
+
/**
* A dialogue type designed to display an appropriate error when a generic
* javascript error was thrown and caught.
diff --git a/lib/yui/build/moodle-core-notification-exception/moodle-core-notification-exception.js b/lib/yui/build/moodle-core-notification-exception/moodle-core-notification-exception.js
index d386bcfeacc..56434679b50 100644
--- a/lib/yui/build/moodle-core-notification-exception/moodle-core-notification-exception.js
+++ b/lib/yui/build/moodle-core-notification-exception/moodle-core-notification-exception.js
@@ -1,5 +1,6 @@
YUI.add('moodle-core-notification-exception', function (Y, NAME) {
+/* eslint-disable no-unused-vars, no-unused-expressions */
var DIALOGUE_PREFIX,
BASE,
CONFIRMYES,
@@ -27,6 +28,8 @@ CSS = {
// Set up the namespace once.
M.core = M.core || {};
+/* global BASE, DIALOGUE_PREFIX */
+
/**
* A dialogue type designed to display an appropriate error when a generic
* javascript error was thrown and caught.
diff --git a/lib/yui/src/blocks/js/blockregion.js b/lib/yui/src/blocks/js/blockregion.js
index cf981d2a276..98d6401dc90 100644
--- a/lib/yui/src/blocks/js/blockregion.js
+++ b/lib/yui/src/blocks/js/blockregion.js
@@ -1,3 +1,5 @@
+/* global MANAGER */
+
/**
* This file contains the Block Region class used by the drag and drop manager.
*
diff --git a/lib/yui/src/blocks/js/blocks.js b/lib/yui/src/blocks/js/blocks.js
index f2e3eab77b1..ca1a15d71cd 100644
--- a/lib/yui/src/blocks/js/blocks.js
+++ b/lib/yui/src/blocks/js/blocks.js
@@ -1,3 +1,5 @@
+/* global MANAGER */
+
/**
* Provides drag and drop functionality for blocks.
*
diff --git a/lib/yui/src/blocks/js/manager.js b/lib/yui/src/blocks/js/manager.js
index 97b28f81bee..f8eab037937 100644
--- a/lib/yui/src/blocks/js/manager.js
+++ b/lib/yui/src/blocks/js/manager.js
@@ -1,3 +1,5 @@
+/* global BLOCKREGION, SELECTOR, AJAXURL */
+
/**
* This file contains the drag and drop manager class.
*
diff --git a/lib/yui/src/dock/js/block.js b/lib/yui/src/dock/js/block.js
index 824fd3c564b..68693ef961f 100644
--- a/lib/yui/src/dock/js/block.js
+++ b/lib/yui/src/dock/js/block.js
@@ -1,3 +1,5 @@
+/* global BLOCK, LOGNS, DOCKEDITEM */
+
/**
* Dock JS.
*
diff --git a/lib/yui/src/dock/js/dock.js b/lib/yui/src/dock/js/dock.js
index e16d3e40bfe..7c8a0dfe75d 100644
--- a/lib/yui/src/dock/js/dock.js
+++ b/lib/yui/src/dock/js/dock.js
@@ -6,7 +6,6 @@
* @module moodle-core-dock
*/
-
var LOGNS = 'moodle-core-dock',
BODY = Y.one(Y.config.doc.body),
CSS = {
@@ -32,7 +31,7 @@ var LOGNS = 'moodle-core-dock',
DOCKPANEL,
TABHEIGHTMANAGER,
BLOCK,
- DOCKEDITEM;
+ DOCKEDITEM; // eslint-disable-line no-unused-vars
M.core = M.core || {};
M.core.dock = M.core.dock || {};
diff --git a/lib/yui/src/dock/js/dockeditem.js b/lib/yui/src/dock/js/dockeditem.js
index d0d6431ad6d..b18eac8c0ca 100644
--- a/lib/yui/src/dock/js/dockeditem.js
+++ b/lib/yui/src/dock/js/dockeditem.js
@@ -1,3 +1,5 @@
+/* global LOGNS, DOCKEDITEM */
+
/**
* Dock JS.
*
diff --git a/lib/yui/src/dock/js/panel.js b/lib/yui/src/dock/js/panel.js
index fd50c44f18f..59e39e33fac 100644
--- a/lib/yui/src/dock/js/panel.js
+++ b/lib/yui/src/dock/js/panel.js
@@ -1,3 +1,5 @@
+/* global DOCKPANEL, LOGNS */
+
/**
* Dock JS.
*
diff --git a/lib/yui/src/dock/js/tabheightmanager.js b/lib/yui/src/dock/js/tabheightmanager.js
index 28aaff489eb..b8d48518ab2 100644
--- a/lib/yui/src/dock/js/tabheightmanager.js
+++ b/lib/yui/src/dock/js/tabheightmanager.js
@@ -1,3 +1,5 @@
+/* global TABHEIGHTMANAGER, LOGNS */
+
/**
* Dock JS.
*
diff --git a/lib/yui/src/languninstallconfirm/js/languninstallconfirm.js b/lib/yui/src/languninstallconfirm/js/languninstallconfirm.js
index 8503998f7b8..2c19f0dd3ef 100644
--- a/lib/yui/src/languninstallconfirm/js/languninstallconfirm.js
+++ b/lib/yui/src/languninstallconfirm/js/languninstallconfirm.js
@@ -1,3 +1,5 @@
+/* global NAME */
+
/**
* Home for a Confirmation class.
*
diff --git a/lib/yui/src/notification/js/ajaxexception.js b/lib/yui/src/notification/js/ajaxexception.js
index 7dd0c861e7d..81e4711c090 100644
--- a/lib/yui/src/notification/js/ajaxexception.js
+++ b/lib/yui/src/notification/js/ajaxexception.js
@@ -1,3 +1,5 @@
+/* global BASE, DIALOGUE_PREFIX */
+
/**
* A dialogue type designed to display an appropriate error when an error
* thrown in the Moodle codebase was reported during an AJAX request.
diff --git a/lib/yui/src/notification/js/alert.js b/lib/yui/src/notification/js/alert.js
index d2acd6cab95..5e001a56d5c 100644
--- a/lib/yui/src/notification/js/alert.js
+++ b/lib/yui/src/notification/js/alert.js
@@ -1,3 +1,5 @@
+/* global BASE, TITLE, CONFIRMYES, DIALOGUE_PREFIX */
+
/**
* A dialogue type designed to display an alert to the user.
*
diff --git a/lib/yui/src/notification/js/confirm.js b/lib/yui/src/notification/js/confirm.js
index f26a159bfb4..94e655398c5 100644
--- a/lib/yui/src/notification/js/confirm.js
+++ b/lib/yui/src/notification/js/confirm.js
@@ -1,3 +1,5 @@
+/* global CONFIRMYES, CONFIRMNO, QUESTION, BASE, TITLE, DIALOGUE_PREFIX */
+
/**
* A dialogue type designed to display a confirmation to the user.
*
diff --git a/lib/yui/src/notification/js/dialogue.js b/lib/yui/src/notification/js/dialogue.js
index 8f0220c7d2d..79102761900 100644
--- a/lib/yui/src/notification/js/dialogue.js
+++ b/lib/yui/src/notification/js/dialogue.js
@@ -1,3 +1,5 @@
+/* global DIALOGUE_PREFIX, BASE */
+
/**
* The generic dialogue class for use in Moodle.
*
diff --git a/lib/yui/src/notification/js/exception.js b/lib/yui/src/notification/js/exception.js
index c6394d663b1..de8ff2f2729 100644
--- a/lib/yui/src/notification/js/exception.js
+++ b/lib/yui/src/notification/js/exception.js
@@ -1,3 +1,5 @@
+/* global BASE, DIALOGUE_PREFIX */
+
/**
* A dialogue type designed to display an appropriate error when a generic
* javascript error was thrown and caught.
diff --git a/lib/yui/src/notification/js/info.js b/lib/yui/src/notification/js/info.js
index 70b76a73ae9..a863e9f146d 100644
--- a/lib/yui/src/notification/js/info.js
+++ b/lib/yui/src/notification/js/info.js
@@ -1,3 +1,5 @@
+/* global DIALOGUE_PREFIX */
+
/**
* A dialogue type designed to display informative messages to users.
*
diff --git a/lib/yui/src/notification/js/shared.js b/lib/yui/src/notification/js/shared.js
index 362bd766c9b..f271df33859 100644
--- a/lib/yui/src/notification/js/shared.js
+++ b/lib/yui/src/notification/js/shared.js
@@ -1,3 +1,4 @@
+/* eslint-disable no-unused-vars, no-unused-expressions */
var DIALOGUE_PREFIX,
BASE,
CONFIRMYES,
diff --git a/message/yui/build/moodle-core_message-messenger/moodle-core_message-messenger-debug.js b/message/yui/build/moodle-core_message-messenger/moodle-core_message-messenger-debug.js
index f24feb09cab..61d6d44a731 100644
--- a/message/yui/build/moodle-core_message-messenger/moodle-core_message-messenger-debug.js
+++ b/message/yui/build/moodle-core_message-messenger/moodle-core_message-messenger-debug.js
@@ -14,6 +14,7 @@ YUI.add('moodle-core_message-messenger', function (Y, NAME) {
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* eslint-disable no-unused-vars */
/**
* Messenger constants.
@@ -54,6 +55,7 @@ var SELECTORS = {};
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global SELECTORS */
/**
* Messenger manager.
@@ -197,6 +199,7 @@ Y.namespace('M.core_message.messenger').init = function(config) {
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global CSSR, SELECTORS */
/**
* Send message dialog.
diff --git a/message/yui/build/moodle-core_message-messenger/moodle-core_message-messenger.js b/message/yui/build/moodle-core_message-messenger/moodle-core_message-messenger.js
index f24feb09cab..61d6d44a731 100644
--- a/message/yui/build/moodle-core_message-messenger/moodle-core_message-messenger.js
+++ b/message/yui/build/moodle-core_message-messenger/moodle-core_message-messenger.js
@@ -14,6 +14,7 @@ YUI.add('moodle-core_message-messenger', function (Y, NAME) {
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* eslint-disable no-unused-vars */
/**
* Messenger constants.
@@ -54,6 +55,7 @@ var SELECTORS = {};
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global SELECTORS */
/**
* Messenger manager.
@@ -197,6 +199,7 @@ Y.namespace('M.core_message.messenger').init = function(config) {
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global CSSR, SELECTORS */
/**
* Send message dialog.
diff --git a/message/yui/src/messenger/js/constants.js b/message/yui/src/messenger/js/constants.js
index b667fcdbdbd..4e3adb12501 100644
--- a/message/yui/src/messenger/js/constants.js
+++ b/message/yui/src/messenger/js/constants.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* eslint-disable no-unused-vars */
/**
* Messenger constants.
diff --git a/message/yui/src/messenger/js/manager.js b/message/yui/src/messenger/js/manager.js
index 916d51d9887..559529a3dc4 100644
--- a/message/yui/src/messenger/js/manager.js
+++ b/message/yui/src/messenger/js/manager.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global SELECTORS */
/**
* Messenger manager.
diff --git a/message/yui/src/messenger/js/sendmessage.js b/message/yui/src/messenger/js/sendmessage.js
index 8998638f9dd..1196010ac44 100644
--- a/message/yui/src/messenger/js/sendmessage.js
+++ b/message/yui/src/messenger/js/sendmessage.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global CSSR, SELECTORS */
/**
* Send message dialog.
diff --git a/mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor-debug.js b/mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor-debug.js
index 1a8d6a72fca..5839440bed8 100644
--- a/mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor-debug.js
+++ b/mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor-debug.js
@@ -14,6 +14,7 @@ YUI.add('moodle-assignfeedback_editpdf-editor', function (Y, NAME) {
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* eslint-disable no-unused-vars */
/**
* A list of globals used by this module.
@@ -412,6 +413,7 @@ M.assignfeedback_editpdf.edit = EDIT;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global SELECTOR */
/**
* Provides an in browser PDF editor.
@@ -524,6 +526,7 @@ M.assignfeedback_editpdf.drawable = DRAWABLE;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global STROKEWEIGHT, SELECTOR, SELECTEDBORDERCOLOUR, SELECTEDFILLCOLOUR */
/**
* Provides an in browser PDF editor.
@@ -864,6 +867,7 @@ M.assignfeedback_editpdf.annotation = ANNOTATION;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global STROKEWEIGHT, ANNOTATIONCOLOUR */
/**
* Provides an in browser PDF editor.
@@ -984,6 +988,7 @@ M.assignfeedback_editpdf.annotationline = ANNOTATIONLINE;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global STROKEWEIGHT, ANNOTATIONCOLOUR */
/**
* Provides an in browser PDF editor.
@@ -1098,6 +1103,7 @@ M.assignfeedback_editpdf.annotationrectangle = ANNOTATIONRECTANGLE;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global STROKEWEIGHT, ANNOTATIONCOLOUR */
/**
* Provides an in browser PDF editor.
@@ -1212,6 +1218,7 @@ M.assignfeedback_editpdf.annotationoval = ANNOTATIONOVAL;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global STROKEWEIGHT, ANNOTATIONCOLOUR */
/**
* Provides an in browser PDF editor.
@@ -1372,6 +1379,7 @@ M.assignfeedback_editpdf.annotationpen = ANNOTATIONPEN;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global ANNOTATIONCOLOUR */
/**
* Provides an in browser PDF editor.
@@ -1525,6 +1533,7 @@ M.assignfeedback_editpdf.annotationhighlight = ANNOTATIONHIGHLIGHT;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global SELECTOR */
/**
* Provides an in browser PDF editor.
@@ -2175,6 +2184,8 @@ Y.extend(COMMENTMENU, M.assignfeedback_editpdf.dropdown, {
M.assignfeedback_editpdf = M.assignfeedback_editpdf || {};
M.assignfeedback_editpdf.commentmenu = COMMENTMENU;
+/* eslint-disable no-unused-vars */
+/* global SELECTOR */
var COMMENTSEARCHNAME = "commentsearch",
COMMENTSEARCH;
@@ -2365,6 +2376,7 @@ M.assignfeedback_editpdf.commentsearch = COMMENTSEARCH;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global SELECTOR, COMMENTCOLOUR, COMMENTTEXTCOLOUR */
/**
* Provides an in browser PDF editor.
@@ -2879,6 +2891,7 @@ M.assignfeedback_editpdf.quickcomment = QUICKCOMMENT;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global AJAXBASE */
/**
* Provides an in browser PDF editor.
@@ -3079,6 +3092,8 @@ M.assignfeedback_editpdf.quickcommentlist = QUICKCOMMENTLIST;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* eslint-disable no-unused-vars */
+/* global SELECTOR, TOOLSELECTOR, AJAXBASE, COMMENTCOLOUR, ANNOTATIONCOLOUR, AJAXBASEPROGRESS, CLICKTIMEOUT */
/**
* Provides an in browser PDF editor.
diff --git a/mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor.js b/mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor.js
index 1a8d6a72fca..5839440bed8 100644
--- a/mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor.js
+++ b/mod/assign/feedback/editpdf/yui/build/moodle-assignfeedback_editpdf-editor/moodle-assignfeedback_editpdf-editor.js
@@ -14,6 +14,7 @@ YUI.add('moodle-assignfeedback_editpdf-editor', function (Y, NAME) {
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* eslint-disable no-unused-vars */
/**
* A list of globals used by this module.
@@ -412,6 +413,7 @@ M.assignfeedback_editpdf.edit = EDIT;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global SELECTOR */
/**
* Provides an in browser PDF editor.
@@ -524,6 +526,7 @@ M.assignfeedback_editpdf.drawable = DRAWABLE;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global STROKEWEIGHT, SELECTOR, SELECTEDBORDERCOLOUR, SELECTEDFILLCOLOUR */
/**
* Provides an in browser PDF editor.
@@ -864,6 +867,7 @@ M.assignfeedback_editpdf.annotation = ANNOTATION;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global STROKEWEIGHT, ANNOTATIONCOLOUR */
/**
* Provides an in browser PDF editor.
@@ -984,6 +988,7 @@ M.assignfeedback_editpdf.annotationline = ANNOTATIONLINE;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global STROKEWEIGHT, ANNOTATIONCOLOUR */
/**
* Provides an in browser PDF editor.
@@ -1098,6 +1103,7 @@ M.assignfeedback_editpdf.annotationrectangle = ANNOTATIONRECTANGLE;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global STROKEWEIGHT, ANNOTATIONCOLOUR */
/**
* Provides an in browser PDF editor.
@@ -1212,6 +1218,7 @@ M.assignfeedback_editpdf.annotationoval = ANNOTATIONOVAL;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global STROKEWEIGHT, ANNOTATIONCOLOUR */
/**
* Provides an in browser PDF editor.
@@ -1372,6 +1379,7 @@ M.assignfeedback_editpdf.annotationpen = ANNOTATIONPEN;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global ANNOTATIONCOLOUR */
/**
* Provides an in browser PDF editor.
@@ -1525,6 +1533,7 @@ M.assignfeedback_editpdf.annotationhighlight = ANNOTATIONHIGHLIGHT;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global SELECTOR */
/**
* Provides an in browser PDF editor.
@@ -2175,6 +2184,8 @@ Y.extend(COMMENTMENU, M.assignfeedback_editpdf.dropdown, {
M.assignfeedback_editpdf = M.assignfeedback_editpdf || {};
M.assignfeedback_editpdf.commentmenu = COMMENTMENU;
+/* eslint-disable no-unused-vars */
+/* global SELECTOR */
var COMMENTSEARCHNAME = "commentsearch",
COMMENTSEARCH;
@@ -2365,6 +2376,7 @@ M.assignfeedback_editpdf.commentsearch = COMMENTSEARCH;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global SELECTOR, COMMENTCOLOUR, COMMENTTEXTCOLOUR */
/**
* Provides an in browser PDF editor.
@@ -2879,6 +2891,7 @@ M.assignfeedback_editpdf.quickcomment = QUICKCOMMENT;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global AJAXBASE */
/**
* Provides an in browser PDF editor.
@@ -3079,6 +3092,8 @@ M.assignfeedback_editpdf.quickcommentlist = QUICKCOMMENTLIST;
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* eslint-disable no-unused-vars */
+/* global SELECTOR, TOOLSELECTOR, AJAXBASE, COMMENTCOLOUR, ANNOTATIONCOLOUR, AJAXBASEPROGRESS, CLICKTIMEOUT */
/**
* Provides an in browser PDF editor.
diff --git a/mod/assign/feedback/editpdf/yui/src/editor/js/annotation.js b/mod/assign/feedback/editpdf/yui/src/editor/js/annotation.js
index 5415add9d98..536b2141052 100644
--- a/mod/assign/feedback/editpdf/yui/src/editor/js/annotation.js
+++ b/mod/assign/feedback/editpdf/yui/src/editor/js/annotation.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global STROKEWEIGHT, SELECTOR, SELECTEDBORDERCOLOUR, SELECTEDFILLCOLOUR */
/**
* Provides an in browser PDF editor.
diff --git a/mod/assign/feedback/editpdf/yui/src/editor/js/annotationhighlight.js b/mod/assign/feedback/editpdf/yui/src/editor/js/annotationhighlight.js
index 3a2719bba47..f80f629d640 100644
--- a/mod/assign/feedback/editpdf/yui/src/editor/js/annotationhighlight.js
+++ b/mod/assign/feedback/editpdf/yui/src/editor/js/annotationhighlight.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global ANNOTATIONCOLOUR */
/**
* Provides an in browser PDF editor.
diff --git a/mod/assign/feedback/editpdf/yui/src/editor/js/annotationline.js b/mod/assign/feedback/editpdf/yui/src/editor/js/annotationline.js
index 9bf2499680f..fedd717399b 100644
--- a/mod/assign/feedback/editpdf/yui/src/editor/js/annotationline.js
+++ b/mod/assign/feedback/editpdf/yui/src/editor/js/annotationline.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global STROKEWEIGHT, ANNOTATIONCOLOUR */
/**
* Provides an in browser PDF editor.
diff --git a/mod/assign/feedback/editpdf/yui/src/editor/js/annotationoval.js b/mod/assign/feedback/editpdf/yui/src/editor/js/annotationoval.js
index 9b878e8bf6c..0584e38919e 100644
--- a/mod/assign/feedback/editpdf/yui/src/editor/js/annotationoval.js
+++ b/mod/assign/feedback/editpdf/yui/src/editor/js/annotationoval.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global STROKEWEIGHT, ANNOTATIONCOLOUR */
/**
* Provides an in browser PDF editor.
diff --git a/mod/assign/feedback/editpdf/yui/src/editor/js/annotationpen.js b/mod/assign/feedback/editpdf/yui/src/editor/js/annotationpen.js
index 6a857d1acdd..55fb5c4e6c3 100644
--- a/mod/assign/feedback/editpdf/yui/src/editor/js/annotationpen.js
+++ b/mod/assign/feedback/editpdf/yui/src/editor/js/annotationpen.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global STROKEWEIGHT, ANNOTATIONCOLOUR */
/**
* Provides an in browser PDF editor.
diff --git a/mod/assign/feedback/editpdf/yui/src/editor/js/annotationrectangle.js b/mod/assign/feedback/editpdf/yui/src/editor/js/annotationrectangle.js
index 2b640ae01c1..3e040848ac9 100644
--- a/mod/assign/feedback/editpdf/yui/src/editor/js/annotationrectangle.js
+++ b/mod/assign/feedback/editpdf/yui/src/editor/js/annotationrectangle.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global STROKEWEIGHT, ANNOTATIONCOLOUR */
/**
* Provides an in browser PDF editor.
diff --git a/mod/assign/feedback/editpdf/yui/src/editor/js/annotationstamp.js b/mod/assign/feedback/editpdf/yui/src/editor/js/annotationstamp.js
index 99d0f023d1e..69dea5db8c5 100644
--- a/mod/assign/feedback/editpdf/yui/src/editor/js/annotationstamp.js
+++ b/mod/assign/feedback/editpdf/yui/src/editor/js/annotationstamp.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global SELECTOR */
/**
* Provides an in browser PDF editor.
diff --git a/mod/assign/feedback/editpdf/yui/src/editor/js/comment.js b/mod/assign/feedback/editpdf/yui/src/editor/js/comment.js
index ed29d0abe82..fe3670fab63 100644
--- a/mod/assign/feedback/editpdf/yui/src/editor/js/comment.js
+++ b/mod/assign/feedback/editpdf/yui/src/editor/js/comment.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global SELECTOR, COMMENTCOLOUR, COMMENTTEXTCOLOUR */
/**
* Provides an in browser PDF editor.
diff --git a/mod/assign/feedback/editpdf/yui/src/editor/js/commentsearch.js b/mod/assign/feedback/editpdf/yui/src/editor/js/commentsearch.js
index 73b265784d9..ac378ca99f7 100644
--- a/mod/assign/feedback/editpdf/yui/src/editor/js/commentsearch.js
+++ b/mod/assign/feedback/editpdf/yui/src/editor/js/commentsearch.js
@@ -1,3 +1,5 @@
+/* eslint-disable no-unused-vars */
+/* global SELECTOR */
var COMMENTSEARCHNAME = "commentsearch",
COMMENTSEARCH;
diff --git a/mod/assign/feedback/editpdf/yui/src/editor/js/drawable.js b/mod/assign/feedback/editpdf/yui/src/editor/js/drawable.js
index 21e368c3099..d17fad02f6c 100644
--- a/mod/assign/feedback/editpdf/yui/src/editor/js/drawable.js
+++ b/mod/assign/feedback/editpdf/yui/src/editor/js/drawable.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global SELECTOR */
/**
* Provides an in browser PDF editor.
diff --git a/mod/assign/feedback/editpdf/yui/src/editor/js/editor.js b/mod/assign/feedback/editpdf/yui/src/editor/js/editor.js
index 8d842f86025..d0fc76a5994 100644
--- a/mod/assign/feedback/editpdf/yui/src/editor/js/editor.js
+++ b/mod/assign/feedback/editpdf/yui/src/editor/js/editor.js
@@ -12,6 +12,8 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* eslint-disable no-unused-vars */
+/* global SELECTOR, TOOLSELECTOR, AJAXBASE, COMMENTCOLOUR, ANNOTATIONCOLOUR, AJAXBASEPROGRESS, CLICKTIMEOUT */
/**
* Provides an in browser PDF editor.
diff --git a/mod/assign/feedback/editpdf/yui/src/editor/js/globals.js b/mod/assign/feedback/editpdf/yui/src/editor/js/globals.js
index 7b5eba122f4..4a2b3df287d 100644
--- a/mod/assign/feedback/editpdf/yui/src/editor/js/globals.js
+++ b/mod/assign/feedback/editpdf/yui/src/editor/js/globals.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* eslint-disable no-unused-vars */
/**
* A list of globals used by this module.
diff --git a/mod/assign/feedback/editpdf/yui/src/editor/js/quickcommentlist.js b/mod/assign/feedback/editpdf/yui/src/editor/js/quickcommentlist.js
index e92f6648f71..9893191a270 100644
--- a/mod/assign/feedback/editpdf/yui/src/editor/js/quickcommentlist.js
+++ b/mod/assign/feedback/editpdf/yui/src/editor/js/quickcommentlist.js
@@ -12,6 +12,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
+/* global AJAXBASE */
/**
* Provides an in browser PDF editor.
diff --git a/mod/quiz/yui/build/moodle-mod_quiz-dragdrop/moodle-mod_quiz-dragdrop-debug.js b/mod/quiz/yui/build/moodle-mod_quiz-dragdrop/moodle-mod_quiz-dragdrop-debug.js
index d733d383492..8dee2d694be 100644
--- a/mod/quiz/yui/build/moodle-mod_quiz-dragdrop/moodle-mod_quiz-dragdrop-debug.js
+++ b/mod/quiz/yui/build/moodle-mod_quiz-dragdrop/moodle-mod_quiz-dragdrop-debug.js
@@ -1,5 +1,6 @@
YUI.add('moodle-mod_quiz-dragdrop', function (Y, NAME) {
+/* eslint-disable no-unused-vars */
/**
* Drag and Drop for Quiz sections and slots.
*
@@ -296,6 +297,7 @@ M.mod_quiz = M.mod_quiz || {};
M.mod_quiz.init_section_dragdrop = function(params) {
new DRAGSECTION(params);
};
+/* global SELECTOR */
/**
* Resource drag and drop.
*
diff --git a/mod/quiz/yui/build/moodle-mod_quiz-dragdrop/moodle-mod_quiz-dragdrop.js b/mod/quiz/yui/build/moodle-mod_quiz-dragdrop/moodle-mod_quiz-dragdrop.js
index 825813e2072..19c19ae976c 100644
--- a/mod/quiz/yui/build/moodle-mod_quiz-dragdrop/moodle-mod_quiz-dragdrop.js
+++ b/mod/quiz/yui/build/moodle-mod_quiz-dragdrop/moodle-mod_quiz-dragdrop.js
@@ -1,5 +1,6 @@
YUI.add('moodle-mod_quiz-dragdrop', function (Y, NAME) {
+/* eslint-disable no-unused-vars */
/**
* Drag and Drop for Quiz sections and slots.
*
@@ -290,6 +291,7 @@ M.mod_quiz = M.mod_quiz || {};
M.mod_quiz.init_section_dragdrop = function(params) {
new DRAGSECTION(params);
};
+/* global SELECTOR */
/**
* Resource drag and drop.
*
diff --git a/mod/quiz/yui/build/moodle-mod_quiz-toolboxes/moodle-mod_quiz-toolboxes-debug.js b/mod/quiz/yui/build/moodle-mod_quiz-toolboxes/moodle-mod_quiz-toolboxes-debug.js
index 8e3221b31fe..2f5617d857e 100644
--- a/mod/quiz/yui/build/moodle-mod_quiz-toolboxes/moodle-mod_quiz-toolboxes-debug.js
+++ b/mod/quiz/yui/build/moodle-mod_quiz-toolboxes/moodle-mod_quiz-toolboxes-debug.js
@@ -1,5 +1,6 @@
YUI.add('moodle-mod_quiz-toolboxes', function (Y, NAME) {
+/* eslint-disable no-unused-vars */
/**
* Resource and activity toolbox class.
*
@@ -220,6 +221,8 @@ Y.extend(TOOLBOX, Y.Base, {
}
}
);
+/* global TOOLBOX, BODY, SELECTOR */
+
/**
* Resource and activity toolbox class.
*
@@ -679,6 +682,8 @@ M.mod_quiz.init_resource_toolbox = function(config) {
M.mod_quiz.resource_toolbox = new RESOURCETOOLBOX(config);
return M.mod_quiz.resource_toolbox;
};
+/* global TOOLBOX, BODY, SELECTOR */
+
/**
* Section toolbox class.
*
diff --git a/mod/quiz/yui/build/moodle-mod_quiz-toolboxes/moodle-mod_quiz-toolboxes.js b/mod/quiz/yui/build/moodle-mod_quiz-toolboxes/moodle-mod_quiz-toolboxes.js
index 8e3221b31fe..2f5617d857e 100644
--- a/mod/quiz/yui/build/moodle-mod_quiz-toolboxes/moodle-mod_quiz-toolboxes.js
+++ b/mod/quiz/yui/build/moodle-mod_quiz-toolboxes/moodle-mod_quiz-toolboxes.js
@@ -1,5 +1,6 @@
YUI.add('moodle-mod_quiz-toolboxes', function (Y, NAME) {
+/* eslint-disable no-unused-vars */
/**
* Resource and activity toolbox class.
*
@@ -220,6 +221,8 @@ Y.extend(TOOLBOX, Y.Base, {
}
}
);
+/* global TOOLBOX, BODY, SELECTOR */
+
/**
* Resource and activity toolbox class.
*
@@ -679,6 +682,8 @@ M.mod_quiz.init_resource_toolbox = function(config) {
M.mod_quiz.resource_toolbox = new RESOURCETOOLBOX(config);
return M.mod_quiz.resource_toolbox;
};
+/* global TOOLBOX, BODY, SELECTOR */
+
/**
* Section toolbox class.
*
diff --git a/mod/quiz/yui/build/moodle-mod_quiz-util-page/moodle-mod_quiz-util-page-debug.js b/mod/quiz/yui/build/moodle-mod_quiz-util-page/moodle-mod_quiz-util-page-debug.js
index 66a404c4049..644f407f639 100644
--- a/mod/quiz/yui/build/moodle-mod_quiz-util-page/moodle-mod_quiz-util-page-debug.js
+++ b/mod/quiz/yui/build/moodle-mod_quiz-util-page/moodle-mod_quiz-util-page-debug.js
@@ -1,5 +1,7 @@
YUI.add('moodle-mod_quiz-util-page', function (Y, NAME) {
+/* global YUI */
+
/**
* A collection of utility classes for use with pages.
*
diff --git a/mod/quiz/yui/build/moodle-mod_quiz-util-page/moodle-mod_quiz-util-page.js b/mod/quiz/yui/build/moodle-mod_quiz-util-page/moodle-mod_quiz-util-page.js
index 66a404c4049..644f407f639 100644
--- a/mod/quiz/yui/build/moodle-mod_quiz-util-page/moodle-mod_quiz-util-page.js
+++ b/mod/quiz/yui/build/moodle-mod_quiz-util-page/moodle-mod_quiz-util-page.js
@@ -1,5 +1,7 @@
YUI.add('moodle-mod_quiz-util-page', function (Y, NAME) {
+/* global YUI */
+
/**
* A collection of utility classes for use with pages.
*
diff --git a/mod/quiz/yui/src/dragdrop/js/dragdrop.js b/mod/quiz/yui/src/dragdrop/js/dragdrop.js
index 39ed5de2e3a..f5ee89cf435 100644
--- a/mod/quiz/yui/src/dragdrop/js/dragdrop.js
+++ b/mod/quiz/yui/src/dragdrop/js/dragdrop.js
@@ -1,3 +1,4 @@
+/* eslint-disable no-unused-vars */
/**
* Drag and Drop for Quiz sections and slots.
*
diff --git a/mod/quiz/yui/src/dragdrop/js/resource.js b/mod/quiz/yui/src/dragdrop/js/resource.js
index b213807f1cd..6585f711a86 100644
--- a/mod/quiz/yui/src/dragdrop/js/resource.js
+++ b/mod/quiz/yui/src/dragdrop/js/resource.js
@@ -1,3 +1,4 @@
+/* global SELECTOR */
/**
* Resource drag and drop.
*
diff --git a/mod/quiz/yui/src/toolboxes/js/resource.js b/mod/quiz/yui/src/toolboxes/js/resource.js
index ec329592027..639069237f8 100644
--- a/mod/quiz/yui/src/toolboxes/js/resource.js
+++ b/mod/quiz/yui/src/toolboxes/js/resource.js
@@ -1,3 +1,5 @@
+/* global TOOLBOX, BODY, SELECTOR */
+
/**
* Resource and activity toolbox class.
*
diff --git a/mod/quiz/yui/src/toolboxes/js/section.js b/mod/quiz/yui/src/toolboxes/js/section.js
index efbda57fd89..ca34a3c9a70 100644
--- a/mod/quiz/yui/src/toolboxes/js/section.js
+++ b/mod/quiz/yui/src/toolboxes/js/section.js
@@ -1,3 +1,5 @@
+/* global TOOLBOX, BODY, SELECTOR */
+
/**
* Section toolbox class.
*
diff --git a/mod/quiz/yui/src/toolboxes/js/toolbox.js b/mod/quiz/yui/src/toolboxes/js/toolbox.js
index 4301ed24aab..b8b6b4bc515 100644
--- a/mod/quiz/yui/src/toolboxes/js/toolbox.js
+++ b/mod/quiz/yui/src/toolboxes/js/toolbox.js
@@ -1,3 +1,4 @@
+/* eslint-disable no-unused-vars */
/**
* Resource and activity toolbox class.
*
diff --git a/mod/quiz/yui/src/util/js/page.js b/mod/quiz/yui/src/util/js/page.js
index a7469fc8958..4ad006a5515 100644
--- a/mod/quiz/yui/src/util/js/page.js
+++ b/mod/quiz/yui/src/util/js/page.js
@@ -1,3 +1,5 @@
+/* global YUI */
+
/**
* A collection of utility classes for use with pages.
*