From 1018d86b53a5dc58a6723cb77a1853aa87b89a1d Mon Sep 17 00:00:00 2001 From: tophf Date: Tue, 18 Apr 2017 17:14:29 +0300 Subject: [PATCH] Don't flicker #check-all-updates on page load --- manage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manage.js b/manage.js index 14ea8b3f..6a0467b1 100644 --- a/manage.js +++ b/manage.js @@ -732,7 +732,6 @@ function filterAndAppend({entry, container}) { function reapplyFilter(container = installed) { - $('#check-all-updates').disabled = !$('.updatable:not(.can-update)'); // A: show const toUnhide = filtersSelector.hide ? $$(filtersSelector.unhide, container) : container; // showStyles() is building the page and no filters are active @@ -784,6 +783,9 @@ function reapplyFilter(container = installed) { return; function shuffle(fullPass) { + if (fullPass) { + $('#check-all-updates').disabled = !$('.updatable:not(.can-update)'); + } // 1. skip the visible group on top let firstHidden = $('#installed > .hidden'); let entry = firstHidden;