[Web] Fix urlencoded objects in api

master
André Peters 2018-02-09 22:45:04 +01:00
parent 07a05b9363
commit 64dbd54478
1 changed files with 4 additions and 0 deletions

View File

@ -124,6 +124,9 @@ $(document).ready(function() {
}
if (typeof multi_data[id] == "undefined") return;
api_items = multi_data[id];
for (var i in api_items) {
api_items[i] = decodeURIComponent(api_items[i]);
}
// alert(JSON.stringify(api_attr));
if (Object.keys(api_items).length !== 0) {
if (is_active($(this))) { return false; }
@ -251,6 +254,7 @@ $(document).ready(function() {
$(document).on('show.bs.modal', '#ConfirmDeleteModal', function() {
$("#ItemsToDelete").empty();
for (var i in data_array) {
data_array[i] = decodeURIComponent(data_array[i]);
$("#ItemsToDelete").append("<li>" + data_array[i] + "</li>");
}
})