Fix scroll-after-conflict-filter

I accidentally removed the code in
ce524bdf57.
This commit is contained in:
Oliver Hamlet
2016-06-21 19:52:08 +01:00
parent 9fec349925
commit a353f91326
+6
View File
@@ -22,6 +22,12 @@ function onConflictsFilter(evt) {
}
});
loot.filters.apply(loot.game.plugins);
/* Scroll to the target plugin */
const list = document.getElementById('pluginCardList');
const index = list.items.findIndex(item => item.name === evt.target.value);
list.scrollToIndex(index);
loot.Dialog.closeProgress();
}).catch(loot.handlePromiseError);
} else {