summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2023-02-01 11:48:35 +0000
committerGitHub <noreply@github.com>2023-02-01 19:48:35 +0800
commit9f9a1ce92292739c3d0b5ee4bb654d883eb3b869 (patch)
tree836fc4c14b01d1f9f80c114c5cf37594517dc2af /web_src
parent72a83dcc82add7537d2f661aa929dd073ced65f3 (diff)
downloadgitea-9f9a1ce92292739c3d0b5ee4bb654d883eb3b869.tar.gz
gitea-9f9a1ce92292739c3d0b5ee4bb654d883eb3b869.zip
Add missing close bracket in imagediff (#22710)
There was a missing `]` in imagediff.js: ``` const $range = $container.find("input[type='range'"); ``` This PR simply adds this. Fix #22702
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/features/imagediff.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/imagediff.js b/web_src/js/features/imagediff.js
index 03ae3b047b..250ea95798 100644
--- a/web_src/js/features/imagediff.js
+++ b/web_src/js/features/imagediff.js
@@ -263,7 +263,7 @@ export function initImageDiff() {
height: sizes.max.height * factor + 4
});
- const $range = $container.find("input[type='range'");
+ const $range = $container.find("input[type='range']");
const onInput = () => sizes.image1.parent().css({
opacity: $range.val() / 100
});