From a30b21e86f56d765d30d43f0f65691b1793bc9e6 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Wed, 29 Jun 2016 16:31:31 +0100 Subject: [PATCH] MDL-55421 js: add some global ignores to js files This is to prevent linting to be extremely noisy about rollup related problems. Should not affect built files. --- .../moodle-course-dragdrop-debug.js | 1 + .../moodle-course-dragdrop.js | 1 + .../moodle-course-management-debug.js | 8 ++++++++ .../moodle-course-management.js | 8 ++++++++ .../moodle-course-toolboxes-debug.js | 4 ++++ .../moodle-course-toolboxes.js | 4 ++++ course/yui/src/dragdrop/js/dragdrop.js | 1 + course/yui/src/management/js/category.js | 2 ++ course/yui/src/management/js/console.js | 2 ++ course/yui/src/management/js/course.js | 2 ++ course/yui/src/management/js/dd.js | 2 ++ course/yui/src/toolboxes/js/resource.js | 2 ++ course/yui/src/toolboxes/js/section.js | 2 ++ course/yui/src/toolboxes/js/toolbox.js | 2 +- ...e-gradereport_grader-gradereporttable-debug.js | 2 ++ .../moodle-gradereport_grader-gradereporttable.js | 2 ++ .../src/gradereporttable/js/floatingheaders.js | 1 + .../src/gradereporttable/js/gradereporttable.js | 1 + .../moodle-editor_atto-editor-debug.js | 7 +++++++ .../moodle-editor_atto-editor.js | 7 +++++++ .../moodle-editor_atto-plugin-debug.js | 1 + .../moodle-editor_atto-plugin.js | 1 + lib/editor/atto/yui/src/editor/js/autosave.js | 2 ++ lib/editor/atto/yui/src/editor/js/clean.js | 1 + .../yui/src/editor/js/editor-plugin-buttons.js | 1 + lib/editor/atto/yui/src/editor/js/editor.js | 1 + lib/editor/atto/yui/src/editor/js/selection.js | 1 + lib/editor/atto/yui/src/editor/js/styling.js | 1 + .../atto/yui/src/editor/js/toolbar-keyboardnav.js | 1 + .../moodle-form-dateselector-debug.js | 2 ++ .../moodle-form-dateselector.js | 2 ++ lib/form/yui/src/dateselector/js/dateselector.js | 2 ++ .../moodle-core-blocks-debug.js | 6 ++++++ .../moodle-core-blocks/moodle-core-blocks.js | 6 ++++++ .../moodle-core-dock/moodle-core-dock-debug.js | 11 +++++++++-- .../build/moodle-core-dock/moodle-core-dock.js | 11 +++++++++-- .../moodle-core-languninstallconfirm-debug.js | 2 ++ .../moodle-core-languninstallconfirm.js | 2 ++ ...oodle-core-notification-ajaxexception-debug.js | 3 +++ .../moodle-core-notification-ajaxexception.js | 3 +++ .../moodle-core-notification-alert-debug.js | 3 +++ .../moodle-core-notification-alert.js | 3 +++ .../moodle-core-notification-confirm-debug.js | 3 +++ .../moodle-core-notification-confirm.js | 3 +++ .../moodle-core-notification-dialogue-debug.js | 5 +++++ .../moodle-core-notification-dialogue.js | 5 +++++ .../moodle-core-notification-exception-debug.js | 3 +++ .../moodle-core-notification-exception.js | 3 +++ lib/yui/src/blocks/js/blockregion.js | 2 ++ lib/yui/src/blocks/js/blocks.js | 2 ++ lib/yui/src/blocks/js/manager.js | 2 ++ lib/yui/src/dock/js/block.js | 2 ++ lib/yui/src/dock/js/dock.js | 3 +-- lib/yui/src/dock/js/dockeditem.js | 2 ++ lib/yui/src/dock/js/panel.js | 2 ++ lib/yui/src/dock/js/tabheightmanager.js | 2 ++ .../js/languninstallconfirm.js | 2 ++ lib/yui/src/notification/js/ajaxexception.js | 2 ++ lib/yui/src/notification/js/alert.js | 2 ++ lib/yui/src/notification/js/confirm.js | 2 ++ lib/yui/src/notification/js/dialogue.js | 2 ++ lib/yui/src/notification/js/exception.js | 2 ++ lib/yui/src/notification/js/info.js | 2 ++ lib/yui/src/notification/js/shared.js | 1 + .../moodle-core_message-messenger-debug.js | 3 +++ .../moodle-core_message-messenger.js | 3 +++ message/yui/src/messenger/js/constants.js | 1 + message/yui/src/messenger/js/manager.js | 1 + message/yui/src/messenger/js/sendmessage.js | 1 + .../moodle-assignfeedback_editpdf-editor-debug.js | 15 +++++++++++++++ .../moodle-assignfeedback_editpdf-editor.js | 15 +++++++++++++++ .../editpdf/yui/src/editor/js/annotation.js | 1 + .../yui/src/editor/js/annotationhighlight.js | 1 + .../editpdf/yui/src/editor/js/annotationline.js | 1 + .../editpdf/yui/src/editor/js/annotationoval.js | 1 + .../editpdf/yui/src/editor/js/annotationpen.js | 1 + .../yui/src/editor/js/annotationrectangle.js | 1 + .../editpdf/yui/src/editor/js/annotationstamp.js | 1 + .../feedback/editpdf/yui/src/editor/js/comment.js | 1 + .../editpdf/yui/src/editor/js/commentsearch.js | 2 ++ .../editpdf/yui/src/editor/js/drawable.js | 1 + .../feedback/editpdf/yui/src/editor/js/editor.js | 2 ++ .../feedback/editpdf/yui/src/editor/js/globals.js | 1 + .../editpdf/yui/src/editor/js/quickcommentlist.js | 1 + .../moodle-mod_quiz-dragdrop-debug.js | 2 ++ .../moodle-mod_quiz-dragdrop.js | 2 ++ .../moodle-mod_quiz-toolboxes-debug.js | 5 +++++ .../moodle-mod_quiz-toolboxes.js | 5 +++++ .../moodle-mod_quiz-util-page-debug.js | 2 ++ .../moodle-mod_quiz-util-page.js | 2 ++ mod/quiz/yui/src/dragdrop/js/dragdrop.js | 1 + mod/quiz/yui/src/dragdrop/js/resource.js | 1 + mod/quiz/yui/src/toolboxes/js/resource.js | 2 ++ mod/quiz/yui/src/toolboxes/js/section.js | 2 ++ mod/quiz/yui/src/toolboxes/js/toolbox.js | 1 + mod/quiz/yui/src/util/js/page.js | 2 ++ 96 files changed, 255 insertions(+), 7 deletions(-) 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 0e8fd887cb8..c84c8c699f5 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. * @@ -201,6 +202,7 @@ Y.extend(TOOLBOX, Y.Base, { } } ); +/* global TOOLBOX, BODY, SELECTOR, INDENTLIMITS */ /** * Resource and activity toolbox class. @@ -931,6 +933,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 0e8fd887cb8..c84c8c699f5 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. * @@ -201,6 +202,7 @@ Y.extend(TOOLBOX, Y.Base, { } } ); +/* global TOOLBOX, BODY, SELECTOR, INDENTLIMITS */ /** * Resource and activity toolbox class. @@ -931,6 +933,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 cd69748ab73..0ae9e1fee43 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 7fd7b3b6461..a5a75e28ae2 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. * @@ -199,4 +200,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 bb755769666..233fd60f4c1 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 6fcd0dd6eed..b83f58ebad0 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 6d496bb60d6..4bea94a5b7f 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 7bc8503a2a6..e061fbdcde0 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. @@ -733,6 +734,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. @@ -1234,6 +1237,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 @@ -1881,6 +1885,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 @@ -2089,6 +2094,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 @@ -2509,6 +2515,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 6daa074ce4e..1fe3db97b60 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. @@ -728,6 +729,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. @@ -1223,6 +1226,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 @@ -1869,6 +1873,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 @@ -2075,6 +2080,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 @@ -2495,6 +2501,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 26d6bbc7f05..f61b59da933 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 bd123677dd4..a7356d55121 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 || {}; @@ -1156,6 +1155,8 @@ Y.extend(DOCK, Y.Base, DOCK.prototype, { } }); Y.augment(DOCK, Y.EventTarget); +/* global DOCKPANEL, LOGNS */ + /** * Dock JS. * @@ -1392,6 +1393,8 @@ Y.extend(DOCKPANEL, Y.Base, DOCKPANEL.prototype, { } }); Y.augment(DOCKPANEL, Y.EventTarget); +/* global TABHEIGHTMANAGER, LOGNS */ + /** * Dock JS. * @@ -1632,6 +1635,8 @@ Y.Event.define("dock:actionkey", { sub._delegateDetacher.detach(); } }); +/* global BLOCK, LOGNS, DOCKEDITEM */ + /** * Dock JS. * @@ -1876,6 +1881,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 7e6f8cdf2e7..8812b682803 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 || {}; @@ -1143,6 +1142,8 @@ Y.extend(DOCK, Y.Base, DOCK.prototype, { } }); Y.augment(DOCK, Y.EventTarget); +/* global DOCKPANEL, LOGNS */ + /** * Dock JS. * @@ -1378,6 +1379,8 @@ Y.extend(DOCKPANEL, Y.Base, DOCKPANEL.prototype, { } }); Y.augment(DOCKPANEL, Y.EventTarget); +/* global TABHEIGHTMANAGER, LOGNS */ + /** * Dock JS. * @@ -1617,6 +1620,8 @@ Y.Event.define("dock:actionkey", { sub._delegateDetacher.detach(); } }); +/* global BLOCK, LOGNS, DOCKEDITEM */ + /** * Dock JS. * @@ -1858,6 +1863,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 bebacc1d174..262fce7f56f 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 bebacc1d174..262fce7f56f 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 b94fdf9bd92..9fd0bf41525 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. * @@ -746,6 +749,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 77ad4e495de..cf6e8e6b15e 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. * @@ -743,6 +746,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 6f439323eb1..137b7469826 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 6f439323eb1..137b7469826 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 8e03abc304b..ce013392ea3 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 b4dddc97fe4..c157115b20e 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 c1cbbf0bd27..0630555b86a 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 cddb8f3bd22..2dff285552e 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 a1552f45217..35abdd615cd 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. @@ -410,6 +411,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. @@ -522,6 +524,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. @@ -862,6 +865,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. @@ -982,6 +986,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. @@ -1096,6 +1101,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. @@ -1210,6 +1216,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. @@ -1370,6 +1377,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. @@ -1523,6 +1531,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. @@ -2173,6 +2182,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; @@ -2363,6 +2374,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. @@ -2870,6 +2882,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. @@ -3070,6 +3083,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 a1552f45217..35abdd615cd 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. @@ -410,6 +411,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. @@ -522,6 +524,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. @@ -862,6 +865,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. @@ -982,6 +986,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. @@ -1096,6 +1101,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. @@ -1210,6 +1216,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. @@ -1370,6 +1377,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. @@ -1523,6 +1531,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. @@ -2173,6 +2182,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; @@ -2363,6 +2374,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. @@ -2870,6 +2882,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. @@ -3070,6 +3083,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 e3e3ac13ff7..c953de4dfb5 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 1f8e67e9c7f..9fc12051e15 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 b3f69803462..db7e15169ea 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. *