mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-20 01:11:10 +00:00
[v12.0/forgejo] fix: allow for tracked time to be removed again (#8576)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/8575 - `getElementById` requires a id to be passed and not a query selector, change it to `querySelector`. - Regression of forgejo/forgejo#7408 - Resolves forgejo/forgejo#8571 - Add E2E tests for adding manual tracked time and removing it. Co-authored-by: Gusted <postmaster@gusted.xyz> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8576 Reviewed-by: Beowulf <beowulf@beocode.eu> Reviewed-by: Otto <otto@codeberg.org> Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org> Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
This commit is contained in:
parent
5095cafe49
commit
816a63ef28
2 changed files with 49 additions and 1 deletions
|
@ -57,7 +57,7 @@ export function initRepoIssueTimeTracking() {
|
|||
$(sel).modal({
|
||||
duration: 200,
|
||||
onApprove() {
|
||||
document.getElementById(`${sel} form`).requestSubmit();
|
||||
document.querySelector(`${sel} form`).requestSubmit();
|
||||
},
|
||||
}).modal('show');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue