You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/web_src/js/utils
wxiaoguang b573512312
Correctly query the primary button in a form (#32438)
The "primary button" is used at many places, but sometimes they might
conflict (due to button switch, hidden panel, dropdown menu, etc).

Sometimes we could add a special CSS class for the buttons, but
sometimes not (see the comment of QuickSubmit)

This PR introduces `querySingleVisibleElem` to help to get the correct
primary button (the only visible one), and prevent from querying the
wrong buttons.

Fix #32437

---------

Co-authored-by: silverwind <me@silverwind.io>
4 months ago
..
color.test.ts Convert frontend code to typescript (#31559) 8 months ago
color.ts Fix a number of Typescript issues (#31877) 6 months ago
dom.test.ts Correctly query the primary button in a form (#32438) 4 months ago
dom.ts Correctly query the primary button in a form (#32438) 4 months ago
image.test.ts Convert frontend code to typescript (#31559) 8 months ago
image.ts Fix a number of Typescript issues (#31877) 6 months ago
match.test.ts Convert frontend code to typescript (#31559) 8 months ago
match.ts Fix suggestions for issues (#32380) 4 months ago
time.test.ts Convert frontend code to typescript (#31559) 8 months ago
time.ts Migrate vue components to setup (#32329) 4 months ago
url.test.ts Convert frontend code to typescript (#31559) 8 months ago
url.ts Fix a number of Typescript issues (#31877) 6 months ago