[Web] Fix invalid encodings with json_encode, fixes #3847

This commit is contained in:
andryyy
2020-11-09 14:42:26 +01:00
parent 5e1ae49477
commit 6d56ef6435
4 changed files with 60 additions and 8 deletions

View File

@@ -6,10 +6,6 @@ jQuery(function($){
data: { hash: qitem },
dataType: 'json',
success: function(data){
if (typeof data.error !== 'undefined') {
qError.text(data.error);
qError.show();
}
$('[data-id="qitems_single"]').each(function(index) {
$(this).attr("data-item", qitem);
});
@@ -62,6 +58,12 @@ jQuery(function($){
$('#qid_detail_recipients').append(elem);
});
}
},
error: function(data){
if (typeof data.error !== 'undefined') {
qError.text("Error loading quarantine item");
qError.show();
}
}
});
});