aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js
diff options
context:
space:
mode:
authorYarden Shoham <hrsi88@gmail.com>2023-02-01 14:30:52 +0200
committerGitHub <noreply@github.com>2023-02-01 12:30:52 +0000
commit4c20be7c00179d404175efc787551328a73696f5 (patch)
tree06e9c8a3401ac8bfad71b4a35f9bf7c4f2cab267 /web_src/js
parent263d06f6161d9268f1ed0520e7a75a5bb81ad4da (diff)
downloadgitea-4c20be7c00179d404175efc787551328a73696f5.tar.gz
gitea-4c20be7c00179d404175efc787551328a73696f5.zip
Add missing close bracket in imagediff (#22710) (#22712)
Backport #22710 There was a missing `]` in imagediff.js: ``` const $range = $container.find("input[type='range'"); ``` This PR simply adds this. Fix #22702 Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'web_src/js')
-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 0b021d070f..cc365e65e3 100644
--- a/web_src/js/features/imagediff.js
+++ b/web_src/js/features/imagediff.js
@@ -263,7 +263,7 @@ export default 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
});