MDL-33835 Marking Guide - set currentfocus var to the first criteria comment to avoid JS errors.

This commit is contained in:
Dan Marsden
2012-07-02 16:10:26 +08:00
committed by Dan Poltawski
parent 9a211c853d
commit 7debccbdee
+1 -1
View File
@@ -4,7 +4,7 @@ M.gradingform_guide = {};
* This function is called for each guide on page.
*/
M.gradingform_guide.init = function(Y, options) {
var currentfocus = null;
var currentfocus = Y.one('.markingguideremark');
Y.all('.markingguideremark').on('blur', function(e) {
currentfocus = e.currentTarget;