[Web] Minor fix to api.js

This commit is contained in:
André 2018-06-25 22:32:46 +02:00
parent a5d40a4ab6
commit ca7ad2942a

View File

@ -120,6 +120,7 @@ $(document).ready(function() {
if (typeof multi_data[id] == "undefined") {
multi_data[id] = [];
}
multi_data[id].splice($.inArray($(this).data('item'), multi_data[id]), 1);
multi_data[id].push($(this).data('item'));
}
if (typeof multi_data[id] == "undefined") return;