1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-09 17:24:43 +00:00
yp05327 b5a2bb9ab3
Fix strange UI behavior of cancelling dismiss review modal (#25133)
Fixes https://github.com/go-gitea/gitea/issues/25130

The old code uses `$(this).next()` to get `dismiss-review-modal`.
At first, it will get `$(#dismiss-review-modal)`, but the next time it
will get `$(#dismiss-review-modal).next();`
and then `$(#dismiss-review-modal).next().next();`.
Because div `dismiss-review-modal` will be removed when
`dismiss-review-btn` clicked.

Maybe the right usage is adding `show-modal` class and `data-modal`
attribute.
2023-06-08 08:52:35 +00:00
..
2022-12-24 00:03:11 +08:00
2023-05-18 09:14:31 +08:00
2022-12-24 00:03:11 +08:00
2022-12-24 00:03:11 +08:00
2022-12-24 00:03:11 +08:00
2022-12-24 00:03:11 +08:00
2023-05-03 01:23:39 -04:00
2022-12-24 00:03:11 +08:00
2023-05-18 11:50:11 +00:00