more unterminated JS statements

This commit is contained in:
Petr Skoda 2010-09-17 11:59:10 +00:00
parent 7e3b826516
commit 9e5c8a84ba

View file

@ -33,12 +33,12 @@ M.core_completion.init = function(Y) {
} }
args.ajax.remove(); args.ajax.remove();
} };
var handle_failure = function(id, o, args) { var handle_failure = function(id, o, args) {
alert('An error occurred when attempting to save your tick mark.\n\n('+o.responseText+'.)'); //TODO: localize alert('An error occurred when attempting to save your tick mark.\n\n('+o.responseText+'.)'); //TODO: localize
args.ajax.remove(); args.ajax.remove();
} };
var toggle = function(e) { var toggle = function(e) {
e.preventDefault(); e.preventDefault();
@ -82,7 +82,7 @@ M.core_completion.init = function(Y) {
Y.use('io', function(Y) { Y.use('io', function(Y) {
Y.io(M.cfg.wwwroot+'/course/togglecompletion.php', cfg); Y.io(M.cfg.wwwroot+'/course/togglecompletion.php', cfg);
}); });
} };
// register submit handlers on manual tick completion forms // register submit handlers on manual tick completion forms
Y.all('form.togglecompletion').each(function(form) { Y.all('form.togglecompletion').each(function(form) {
@ -96,6 +96,6 @@ M.core_completion.init = function(Y) {
if (help && !(Y.one('form.togglecompletion') || Y.one('.autocompletion'))) { if (help && !(Y.one('form.togglecompletion') || Y.one('.autocompletion'))) {
help.setStyle('display', 'none'); help.setStyle('display', 'none');
} }
} };