diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-06-22 12:52:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-22 04:52:09 +0000 |
commit | 1a811c0bd10723ada73eb1c48a28cbc0775c6749 (patch) | |
tree | ae274e401ae693fe3917c75b046bcd8d93b844dd /web_src/js/features/common-page.js | |
parent | b3ed1e0e62aa707d0238a91bc1b6658860f4bf3d (diff) | |
download | gitea-1a811c0bd10723ada73eb1c48a28cbc0775c6749.tar.gz gitea-1a811c0bd10723ada73eb1c48a28cbc0775c6749.zip |
Refactor image diff (#31444)
And remove some jQuery functions
Diffstat (limited to 'web_src/js/features/common-page.js')
-rw-r--r-- | web_src/js/features/common-page.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/web_src/js/features/common-page.js b/web_src/js/features/common-page.js index 2df16a5584..7e89807df4 100644 --- a/web_src/js/features/common-page.js +++ b/web_src/js/features/common-page.js @@ -26,7 +26,7 @@ export function initFootLanguageMenu() { $('.language-menu a[lang]').on('click', linkLanguageAction); } -export function initGlobalComponents() { +export function initGlobalDropdown() { // Semantic UI modules. const $uiDropdowns = $('.ui.dropdown'); @@ -68,8 +68,10 @@ export function initGlobalComponents() { // eg: the "Create New Repo" menu on the navbar. $uiDropdowns.filter('.upward').dropdown('setting', 'direction', 'upward'); $uiDropdowns.filter('.downward').dropdown('setting', 'direction', 'downward'); +} - $('.ui.menu.tabular .item').tab({autoTabActivation: false}); +export function initGlobalTabularMenu() { + $('.ui.menu.tabular:not(.custom) .item').tab({autoTabActivation: false}); } /** |