From ca7ad2942ae834f86cc51e98cdcd38cc2aea2d0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Mon, 25 Jun 2018 22:32:46 +0200 Subject: [PATCH] [Web] Minor fix to api.js --- data/web/js/api.js | 1 + 1 file changed, 1 insertion(+) diff --git a/data/web/js/api.js b/data/web/js/api.js index c4d0a37d..54941949 100644 --- a/data/web/js/api.js +++ b/data/web/js/api.js @@ -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;