generators/surveyor/templates/assets/javascripts/jquery.surveyor.js in surveyor-0.19.2 vs generators/surveyor/templates/assets/javascripts/jquery.surveyor.js in surveyor-0.19.3

- old
+ new

@@ -10,10 +10,10 @@ // jQuery(this).parents("form").ajaxSubmit({dataType: 'json', success: successfulSave}); // }); // }else{ // // Other browsers just use the change event on the form jQuery("form#survey_form input, form#survey_form select, form#survey_form textarea").change(function(){ - question_data = $(this).parents('fieldset[id^="q_"]').find("input, select, textarea").serialize(); + question_data = $(this).parents('fieldset[id^="q_"]').find("input, select, textarea").add($("form#survey_form input[name='authenticity_token']")).serialize(); // console.log(unescape(question_data)); $.ajax({ type: "PUT", url: $(this).parents('form#survey_form').attr("action"), data: question_data, dataType: 'json', success: successfulSave }) }); // }