gitea/web_src
Giteabot 8abfbe2165
Fix JS error when changing PR's target branch (#23862) (#23864)
Backport #23862 by @wxiaoguang

Caught by @justusbunsi 

An old bug from #6488

In `pullrequest_targetbranch_change`, the `data` might be empty, because
`UpdatePullRequestTarget` may respond `http.StatusNoContent`.

And the old code's `$branchTarget.text(data.base_branch);` doesn't make
sense, because in the end, the page will be always reloaded.

So, just remove the `$branchTarget.text(data.base_branch);`, everything
should be fine.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-04-01 21:15:46 -04:00
..
css CSS color tweaks (#23828) (#23842) 2023-03-31 17:24:09 +08:00
fomantic Fix Fomantic UI's touchstart fastclick, always use click for click events (#23065) (#23195) 2023-02-28 17:53:45 -05:00
js Fix JS error when changing PR's target branch (#23862) (#23864) 2023-04-01 21:15:46 -04:00
less Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
svg Add Chef package registry (#22554) 2023-02-06 09:49:21 +08:00