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) {
|
$.jGrowl(lang.question_fetch_failure + ' ' + message);
| $.jGrowl(lang.question_fetch_failure + ' ' + message, {theme:'jgrowl_error'});
|
}); } 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(); } };
|