Browse Source

[Web] Minor fix to api.js

André 7 years ago
parent
commit
ca7ad2942a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      data/web/js/api.js

+ 1 - 0
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;