Permalink
Browse files

MDL-33835 Marking Guide - set currentfocus var to the first criteria …

…comment to avoid JS errors.
  • Loading branch information...
1 parent f4a9bf6 commit 0c4390ed21d85c7129d4f61e3264343b201e268f @danmarsden danmarsden committed Jun 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 grade/grading/form/guide/js/guide.js
@@ -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;

0 comments on commit 0c4390e

Please sign in to comment.