Skip to content

Commit

Permalink
more unterminated JS statements
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 17, 2010
1 parent 7e3b826 commit 9e5c8a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions course/completion.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ M.core_completion.init = function(Y) {
}

args.ajax.remove();
}
};

var handle_failure = function(id, o, args) {
alert('An error occurred when attempting to save your tick mark.\n\n('+o.responseText+'.)'); //TODO: localize
args.ajax.remove();
}
};

var toggle = function(e) {
e.preventDefault();
Expand Down Expand Up @@ -82,7 +82,7 @@ M.core_completion.init = function(Y) {
Y.use('io', function(Y) {
Y.io(M.cfg.wwwroot+'/course/togglecompletion.php', cfg);
});
}
};

// register submit handlers on manual tick completion forms
Y.all('form.togglecompletion').each(function(form) {
Expand All @@ -96,6 +96,6 @@ M.core_completion.init = function(Y) {
if (help && !(Y.one('form.togglecompletion') || Y.one('.autocompletion'))) {
help.setStyle('display', 'none');
}
}
};


0 comments on commit 9e5c8a8

Please sign in to comment.