Zeile 19 | Zeile 19 |
---|
refresh_complete: function(request) {
|
refresh_complete: function(request) {
|
var json = $.parseJSON(request.responseText);
| var json = JSON.parse(request.responseText);
|
if(json.hasOwnProperty("errors")) { $.each(json.errors, function(i, message)
| if(json.hasOwnProperty("errors")) { $.each(json.errors, function(i, message)
|
Zeile 29 | Zeile 29 |
---|
} else if(json.question && json.sid) {
|
} else if(json.question && json.sid) {
|
$("#question").text(json.question);
| $("#question").html(json.question);
|
$("#question_id").val(json.sid); }
|
$("#question_id").val(json.sid); }
|
$('#answer').removeClass('error valid').val('').removeAttr('aria-invalid').removeData('previousValue')
| $('#answer').removeClass('error valid').val('').prop('aria-invalid', null).removeData('previousValue')
|
.next('label').remove(); } };
| .next('label').remove(); } };
|