

$(document).ready(function () {
	$('.generate-code').click(function(){
		console.log('clicked on generate-code');
		$.ajax({
			url: '/teachers/classrooms/regenerate_code',
			success: function(data, status, jqXHR) {
				console.log('success regenerating code!');
				console.log(data);
				$('.class-code').val(data.code);
			},
			error: function () {
				console.log('error regenerating code');
			}
		});
	  
	});

});


@@ -70,51 +70,8 @@
 ()%7B%0A
-%09%09console.log('clicked on generate-code');%0A
 %09%09$.
@@ -77,16 +77,16 @@
 .ajax(%7B%0A
+
 %09%09%09url: 
@@ -177,182 +177,38 @@
 %09%09%09%09
-console.log('success regenerating code!');%0A%09%09%09%09console.log(data);%0A%09%09%09%09$('.class-code').val(data.code);%0A%09%09%09%7D,%0A%09%09%09error: function () %7B%0A%09%09%09%09console.log('error regenerating code'
+$('.class-code').val(data.code
 );%0A%09

Remove console.log()s