From bd56200e09f4c95fec92ce6e19cbfe7ed99f61ce Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Fri, 25 Jul 2014 14:29:55 +0800 Subject: [PATCH] MDL-46525 enrol_cohort: fix JS error --- enrol/cohort/yui/quickenrolment/quickenrolment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enrol/cohort/yui/quickenrolment/quickenrolment.js b/enrol/cohort/yui/quickenrolment/quickenrolment.js index 7dc8ffdec04..661af045c56 100644 --- a/enrol/cohort/yui/quickenrolment/quickenrolment.js +++ b/enrol/cohort/yui/quickenrolment/quickenrolment.js @@ -292,7 +292,7 @@ YUI.add('moodle-enrol_cohort-quickenrolment', function(Y) { } else { if (result.response && result.response.message) { var alertpanel = new M.core.alert(result.response); - Y.Node.one('#id_yuialertconfirm-' + alertpanel.COUNT).focus(); + Y.Node.one('#id_yuialertconfirm-' + alertpanel.get('COUNT')).focus(); } var enrolled = Y.Node.create('
'+M.str.enrol.synced+'
'); node.one('.'+CSS.COHORT+' #cohortid_'+cohort.get(COHORTID)).replace(enrolled);