mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-10-25 20:35:50 +08:00
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
This commit is contained in:
@ -263,7 +263,7 @@ export function initImageDiff() {
|
|||||||
height: sizes.max.height * factor + 4
|
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({
|
const onInput = () => sizes.image1.parent().css({
|
||||||
opacity: $range.val() / 100
|
opacity: $range.val() / 100
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user