From 67517589446efee21d7db1737037c52091aa282b Mon Sep 17 00:00:00 2001 From: Hieu Date: Tue, 20 Dec 2016 16:32:55 +0700 Subject: [PATCH 1/2] fixed bugs fix #1: shift click a checkbox only check itself instead of checking the rest of the checkboxes if there isn't a last checkbox already fix #2: unchecking a checkbox doesn't assign the checkbox to the lastChecked variable fix #3: when selecting multiple checkboxes in the opposite direction of the last multiple checkboxes selection, the new selection is made from the lastCheckbox variable of the previous selection instead of the current selection. (e.g: selecting checkbox5 and selecting checkbox9 will select checkbox5,6,7,8,9, after that selecting checkbox1 will only select checkbox1,2,3,4,5 and uncheck 6,7,8,9 instead of checking 1 all the way to 9) fix #4: shift-click on an already checked checkbox uncheck the checkbox instead checking the rest of the checkboxes --- .../index-FINISHED.html | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/10 - Hold Shift and Check Checkboxes/index-FINISHED.html b/10 - Hold Shift and Check Checkboxes/index-FINISHED.html index 3ce296cc4b..4fd73c367e 100644 --- a/10 - Hold Shift and Check Checkboxes/index-FINISHED.html +++ b/10 - Hold Shift and Check Checkboxes/index-FINISHED.html @@ -104,15 +104,15 @@