professor / whiteboard

Carnegie Mellon University - Silicon Valley Campus - Learn By Doing Curriculum Tool
37 stars 61 forks source link

Grading queue #261

Open professor opened 10 years ago

professor commented 10 years ago

When submitting an attachment, the next page is blank.

this is because the client doesn't say that it will accept javascript as a response.

Here is a work around

$(function() {

$.ajaxSetup({ 'beforeSend': function(xhr) { xhr.setRequestHeader("Accept", "text/javascript"); } });

});

See if this issue goes away in Rails 3.1

https://github.com/rails/jquery-ujs/issues/52