From a353f91326f238b694420e579a70e1cfbb137784 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Tue, 21 Jun 2016 19:52:08 +0100 Subject: [PATCH] Fix scroll-after-conflict-filter I accidentally removed the code in ce524bdf5755c59187265b54ad587a3c3ffe6b7b. --- src/gui/html/js/events.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/html/js/events.js b/src/gui/html/js/events.js index 32b49e7f..ba6fc6ce 100644 --- a/src/gui/html/js/events.js +++ b/src/gui/html/js/events.js @@ -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 {