Getting closer, trying some more

This commit is contained in:
Falkvinge
2017-03-16 10:56:12 +01:00
parent b8058ce90e
commit db75f6fed7
+2 -2
View File
@@ -98,10 +98,10 @@ function updateListBox(box, listData) {
// remove items that aren't in list, build id array
var idBoxLookup = {};
var listContainer = $(box).firstChild.firstChild;
var listContainer = $(box).parent.parent;
console.log($(box));
console.log(listContainer);
var listElements = $(listContainer).children;
var listElements = $(box).children;
// Step 3: Iterate through list, add missing items