diff --git a/enrol/yui/enrolmentmanager/enrolmentmanager.js b/enrol/yui/enrolmentmanager/enrolmentmanager.js index 4a473f342a0..290f5a920ed 100644 --- a/enrol/yui/enrolmentmanager/enrolmentmanager.js +++ b/enrol/yui/enrolmentmanager/enrolmentmanager.js @@ -96,7 +96,7 @@ YUI.add('moodle-enrol-enrolmentmanager', function(Y) { .setStyle('opacity', 0.5))) .append(Y.Node.create('
') .append(Y.Node.create('') - .append(Y.Node.create('')) + .append(Y.Node.create('')) ) ) ) @@ -115,7 +115,7 @@ YUI.add('moodle-enrol-enrolmentmanager', function(Y) { this.set(UEP.PARAMS, params); Y.on('key', this.preSearch, this.get(UEP.SEARCH), 'down:13', this); - + Y.one(document.body).append(this.get(UEP.BASE)); var base = this.get(UEP.BASE); @@ -200,7 +200,7 @@ YUI.add('moodle-enrol-enrolmentmanager', function(Y) { } this.getAssignableRoles = function() { this.fire('assignablerolesloaded'); - } + }; this.getAssignableRoles(); } }, @@ -238,7 +238,7 @@ YUI.add('moodle-enrol-enrolmentmanager', function(Y) { y = parseInt(base.get('winHeight'))*0.1; } base.setXY([x,y]); - + if (this.get(UEP.USERS)===null) { this.search(e, false); } diff --git a/enrol/yui/notification/notification.js b/enrol/yui/notification/notification.js index 78d621a5cdc..f1ad0fb1d27 100644 --- a/enrol/yui/notification/notification.js +++ b/enrol/yui/notification/notification.js @@ -43,7 +43,7 @@ var DIALOGUE = function(config) { config.center = config.centered || true; config.centered = false; DIALOGUE.superclass.constructor.apply(this, [config]); -} +}; Y.extend(DIALOGUE, Y.Overlay, { initializer : function(config) { this.set(NODELIGHTBOX, this.get(BASE).one('.'+CSS.LIGHTBOX).setStyle('opacity', 0.5)); @@ -116,7 +116,7 @@ Y.extend(DIALOGUE, Y.Overlay, { var ALERT = function(config) { config.closeButton = false; ALERT.superclass.constructor.apply(this, [config]); -} +}; Y.extend(ALERT, DIALOGUE, { _enterKeypress : null, initializer : function(config) { @@ -132,7 +132,7 @@ Y.extend(ALERT, DIALOGUE, { this.after('destroyedChange', function(){this.get(BASE).remove();}, this); this._enterKeypress = Y.on('key', this.submit, window, 'down:13', this); yes.on('click', this.submit, this); - }, + }, submit : function(e, outcome) { this._enterKeypress.detach(); this.fire('complete'); @@ -166,7 +166,7 @@ Y.extend(ALERT, DIALOGUE, { var CONFIRM = function(config) { CONFIRM.superclass.constructor.apply(this, [config]); -} +}; Y.extend(CONFIRM, DIALOGUE, { _enterKeypress : null, _escKeypress : null, @@ -230,7 +230,7 @@ var EXCEPTION = function(config) { config.width = config.width || (M.cfg.developerdebug)?Math.floor(Y.one(document.body).get('winWidth')/3)+'px':null; config.closeButton = true; EXCEPTION.superclass.constructor.apply(this, [config]); -} +}; Y.extend(EXCEPTION, DIALOGUE, { _hideTimeout : null, _keypress : null, @@ -302,7 +302,7 @@ var AJAXEXCEPTION = function(config) { config.name = config.name || 'Error'; config.closeButton = true; AJAXEXCEPTION.superclass.constructor.apply(this, [config]); -} +}; Y.extend(AJAXEXCEPTION, DIALOGUE, { _keypress : null, initializer : function(config) { diff --git a/enrol/yui/otherusersmanager/otherusersmanager.js b/enrol/yui/otherusersmanager/otherusersmanager.js index d35d20fa09e..1d2078b1d6b 100644 --- a/enrol/yui/otherusersmanager/otherusersmanager.js +++ b/enrol/yui/otherusersmanager/otherusersmanager.js @@ -1,5 +1,5 @@ YUI.add('moodle-enrol-otherusersmanager', function(Y) { - + var OUMANAGERNAME = 'Other users manager', OTHERUSERNAME = 'Other user (not enroled in course)', COURSEID = 'courseId', @@ -49,7 +49,7 @@ YUI.add('moodle-enrol-otherusersmanager', function(Y) { var OUMANAGER = function(config) { OUMANAGER.superclass.constructor.apply(this, arguments); - } + }; Y.extend(OUMANAGER, Y.Base, { _loadingNode : null, _escCloseEvent : null, @@ -82,7 +82,7 @@ YUI.add('moodle-enrol-otherusersmanager', function(Y) { this._loadingNode = this.get(BASE).one('.'+CSS.CONTENT+' .'+CSS.LIGHTBOX); Y.on('key', this.getUsers, this.get(SEARCH), 'down:13', this); Y.one(document.body).append(this.get(BASE)); - + var base = this.get(BASE); base.plug(Y.Plugin.Drag); base.dd.addHandle('.'+CSS.HEADER+' h2'); @@ -137,7 +137,7 @@ YUI.add('moodle-enrol-otherusersmanager', function(Y) { params['action'] = 'searchotherusers'; params['search'] = this.get(SEARCH).get('value'); params['page'] = this.get(PAGE); - + Y.io(M.cfg.wwwroot+this.get(AJAXURL), { method:'POST', data:build_querystring(params), @@ -223,7 +223,7 @@ YUI.add('moodle-enrol-otherusersmanager', function(Y) { } this.getAssignableRoles = function() { this.fire('assignablerolesloaded'); - } + }; this.getAssignableRoles(); } }, @@ -234,7 +234,7 @@ YUI.add('moodle-enrol-otherusersmanager', function(Y) { NAME : OUMANAGERNAME, ATTRS : { courseId : { - + }, ajaxUrl : { validator : Y.Lang.isString @@ -290,7 +290,7 @@ YUI.add('moodle-enrol-otherusersmanager', function(Y) { this._count = count; this._manager = manager; OTHERUSER.superclass.constructor.apply(this, arguments); - } + }; Y.extend(OTHERUSER, Y.Base, { _count : 0, _manager : null, @@ -369,7 +369,7 @@ YUI.add('moodle-enrol-otherusersmanager', function(Y) { NAME : OTHERUSERNAME, ATTRS : { userId : { - + }, fullname : { validator : Y.Lang.isString diff --git a/enrol/yui/quickcohortenrolment/quickcohortenrolment.js b/enrol/yui/quickcohortenrolment/quickcohortenrolment.js index aa55f3bbe1e..e7953c8cf1c 100644 --- a/enrol/yui/quickcohortenrolment/quickcohortenrolment.js +++ b/enrol/yui/quickcohortenrolment/quickcohortenrolment.js @@ -32,7 +32,7 @@ YUI.add('moodle-enrol-quickcohortenrolment', function(Y) { var CONTROLLER = function(config) { CONTROLLER.superclass.constructor.apply(this, arguments); - } + }; Y.extend(CONTROLLER, Y.Base, { _preformingAction : false, initializer : function(config) { @@ -41,7 +41,7 @@ YUI.add('moodle-enrol-quickcohortenrolment', function(Y) { this.publish('cohortsloaded'); this.publish('performingaction'); this.publish('actioncomplete'); - + var close = Y.Node.create(''); var panel = new Y.Overlay({ headerContent : Y.Node.create('').append(Y.Node.create('