-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow toggling patch checkbox by clicking on lines #1429
base: master
Are you sure you want to change the base?
Commits on Oct 30, 2020
-
Clean up closing </span> detritus
Browser HTML-parsers are tolerant, but still...
Configuration menu - View commit details
-
Copy full SHA for 699eb88 - Browse repository at this point
Copy the full SHA 699eb88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f2f10a - Browse repository at this point
Copy the full SHA 3f2f10aView commit details -
Prevent pointer-events on line-number elements
Note that this actually *allows* clicking on line numbers to toggle checkboxes in patch mode.
Configuration menu - View commit details
-
Copy full SHA for 939adc4 - Browse repository at this point
Copy the full SHA 939adc4View commit details -
Don't use jQuery to toggle the checkbox state
This is mainly just because it's the easiest way to satisfy the linter...
Configuration menu - View commit details
-
Copy full SHA for b582f78 - Browse repository at this point
Copy the full SHA b582f78View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f293c8 - Browse repository at this point
Copy the full SHA 1f293c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for c51cd13 - Browse repository at this point
Copy the full SHA c51cd13View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea2057f - Browse repository at this point
Copy the full SHA ea2057fView commit details -
Prevent re-render when text on a single line is selected
The change introduced [here](FredrikNoren#1429 (comment)) (moving the click event to the row) requires a re-render when the row is clicked, and this causes selection issues when selecting text on a single line only. This commit prevent the handler from running when patch mode is not enabled, and so makes selections from a single line possible at least in this case.
Configuration menu - View commit details
-
Copy full SHA for 58a3838 - Browse repository at this point
Copy the full SHA 58a3838View commit details -
Configuration menu - View commit details
-
Copy full SHA for 45a5f82 - Browse repository at this point
Copy the full SHA 45a5f82View commit details -
Remove unnecessary setting of initial checked state
Prettier seems to insist on this on one line.
Configuration menu - View commit details
-
Copy full SHA for 8eb616d - Browse repository at this point
Copy the full SHA 8eb616dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 55d5f6a - Browse repository at this point
Copy the full SHA 55d5f6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9175d26 - Browse repository at this point
Copy the full SHA 9175d26View commit details -
Re-render when patchLineList has been reset
When the edit state has been reset because all the patch line checkboxes have been cleared, `patchLineList` is reset to an empty list. Comparing the before and after html strings is not adequate to detect this change, because `TextDiffViewModel.render` always renders with patchLineList initialized to all `true` values regardless. Adding this check prevents the UI state from becoming inconsistent, while not rerendering on the `detectReActivity` event.
Configuration menu - View commit details
-
Copy full SHA for 3ded019 - Browse repository at this point
Copy the full SHA 3ded019View commit details -
Don't toggle lines' patch status when selecting text
This isn't perfect, but it's better than it was before.
Configuration menu - View commit details
-
Copy full SHA for 59b8135 - Browse repository at this point
Copy the full SHA 59b8135View commit details