From 68165e8fa2d1d3c8a1805e71808febe96730fe89 Mon Sep 17 00:00:00 2001 From: tophf Date: Tue, 15 May 2018 12:21:30 +0300 Subject: [PATCH] filters affect striping, not the sort order --- manage/filters.js | 3 +-- manage/manage.js | 3 +-- manage/sort.js | 2 +- manage/updater-ui.js | 3 +-- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/manage/filters.js b/manage/filters.js index eefae5a5..c3b24ca6 100644 --- a/manage/filters.js +++ b/manage/filters.js @@ -156,8 +156,7 @@ function filterOnChange({target: el, forceRefilter}) { unhide: buildFilter(false), }); if (installed) { - reapplyFilter().then(() => - sorter.update()); + reapplyFilter().then(sorter.updateStripes); } } diff --git a/manage/manage.js b/manage/manage.js index 4edbd075..97451586 100644 --- a/manage/manage.js +++ b/manage/manage.js @@ -544,8 +544,7 @@ function handleUpdate(style, {reason, method, codeIsUpdated} = {}) { if ((reason === 'update' || reason === 'install') && entry.matches('.updatable')) { handleUpdateInstalled(entry, reason); } - filterAndAppend({entry}).then(() => - sorter.update()); + filterAndAppend({entry}).then(sorter.updateStripes); if (!entry.matches('.hidden') && reason !== 'import') { animateElement(entry); requestAnimationFrame(() => scrollElementIntoView(entry)); diff --git a/manage/sort.js b/manage/sort.js index b409ae6e..13528fbe 100644 --- a/manage/sort.js +++ b/manage/sort.js @@ -1,4 +1,4 @@ -/* global installed updateStripes */ +/* global installed */ /* global messageBox */ 'use strict'; diff --git a/manage/updater-ui.js b/manage/updater-ui.js index e740c36d..b9cf151b 100644 --- a/manage/updater-ui.js +++ b/manage/updater-ui.js @@ -178,8 +178,7 @@ function reportUpdateState({updated, style, error, STATES}) { } if (filtersSelector.hide && isCheckAll) { - filterAndAppend({entry}).then(() => - sorter.update()); + filterAndAppend({entry}).then(sorter.updateStripes); } }