MDL-33835 Marking Guide - set currentfocus var to the first criteria comment to avoid...
authorDan Marsden <dan@danmarsden.com>
Tue, 19 Jun 2012 23:48:24 +0000 (11:48 +1200)
committerDan Poltawski <dan@moodle.com>
Mon, 2 Jul 2012 08:10:26 +0000 (16:10 +0800)
grade/grading/form/guide/js/guide.js

index 783ee46..1f1cd90 100644 (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;