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.
forgejo/web_src/js/features
silverwind 335e918b11
Clean up and fix clone button script (#20415)
The button 'primary' class needs to be set in a synchronous script to prevent flicker of the button which was regressed recently, fixed that.

Additionally, reduced the two script tags to just one, the previous scripts were actually initializing the buttons thrice on the empty repo page, now it only initializes once. Finally, removed duplicate code and re-used the inline function in the update code as well.

I had to split out the script into a separate template as on the empty repo page, the script needs access to the clone URL span in the example text, which is rendered below the clone buttons, so buttons and script could not be combined.
2 years ago
..
comp Enable spellcheck for EasyMDE, use contenteditable mode (#19776) 2 years ago
admin-common.js Add LDAP group sync to Teams, fixes #1395 (#16299) 2 years ago
admin-emails.js Use explicit jQuery import, remove unused eslint globals (#18435) 2 years ago
admin-users.js Use explicit jQuery import, remove unused eslint globals (#18435) 2 years ago
aria.js Remove customized (unmaintained) dropdown, improve aria a11y for dropdown (#19861) 2 years ago
aria.md Remove customized (unmaintained) dropdown, improve aria a11y for dropdown (#19861) 2 years ago
clipboard.js Use explicit jQuery import, remove unused eslint globals (#18435) 2 years ago
codeeditor.js Add new JS linter rules (#17699) 3 years ago
colorpicker.js Move jquery-minicolors to npm/webpack (#12305) 4 years ago
common-global.js Fix ROOT_URL detection for URLs without trailing slash (#20502) 2 years ago
common-issue.js Add a checkbox to select all issues/PRs (#20177) 2 years ago
common-organization.js Use explicit jQuery import, remove unused eslint globals (#18435) 2 years ago
contextpopup.js Use tippy.js for context popup (#20393) 2 years ago
dropzone.js Update JS dependencies (#17611) 3 years ago
emoji.js Frontend refactor, PascalCase to camelCase, remove unused code (#17365) 3 years ago
eventsource.sharedworker.js Update JS dependencies (#16708) 3 years ago
file-fold.js Allow to mark files in a PR as viewed (#19007) 2 years ago
formatting.js Prettify number of issues (#17760) 2 years ago
heatmap.js Use explicit jQuery import, remove unused eslint globals (#18435) 2 years ago
imagediff.js Fix viewed images not loading in a PR (#19919) 2 years ago
install.js Use explicit jQuery import, remove unused eslint globals (#18435) 2 years ago
notification.js Never use /api/v1 from Gitea UI Pages (#19318) 2 years ago
org-team.js Never use /api/v1 from Gitea UI Pages (#19318) 2 years ago
pull-view-file.js Replace unstyled meter with progress (#19968) 2 years ago
repo-branch.js Add apply-patch, basic revert and cherry-pick functionality (#17902) 2 years ago
repo-code.js Allow to mark files in a PR as viewed (#19007) 2 years ago
repo-commit.js Fix a JS error in initRepoCommitLastCommitLoader's entryMap (#19996) 2 years ago
repo-common.js Clean up and fix clone button script (#20415) 2 years ago
repo-diff.js Init popup for new code comment (#20234) 2 years ago
repo-editor.js Use explicit jQuery import, remove unused eslint globals (#18435) 2 years ago
repo-findfile.js Feature: Find files in repo (#15028) 2 years ago
repo-graph.js Use explicit jQuery import, remove unused eslint globals (#18435) 2 years ago
repo-home.js A minimal change to replace data calls with attr as per guidelines (#19900) 2 years ago
repo-issue-content.js Use explicit jQuery import, remove unused eslint globals (#18435) 2 years ago
repo-issue-pr-form.js Use Vue to refactor pull merge UI (#19650) 2 years ago
repo-issue.js Enable spellcheck for EasyMDE, use contenteditable mode (#19776) 2 years ago
repo-legacy.js Enable spellcheck for EasyMDE, use contenteditable mode (#19776) 2 years ago
repo-migrate.js Use explicit jQuery import, remove unused eslint globals (#18435) 2 years ago
repo-migration.js Use explicit jQuery import, remove unused eslint globals (#18435) 2 years ago
repo-projects.js Fix various typos (#20338) 2 years ago
repo-release.js Enable spellcheck for EasyMDE, use contenteditable mode (#19776) 2 years ago
repo-settings.js Remove customized (unmaintained) dropdown, improve aria a11y for dropdown (#19861) 2 years ago
repo-template.js Never use /api/v1 from Gitea UI Pages (#19318) 2 years ago
repo-unicode-escape.js Use explicit jQuery import, remove unused eslint globals (#18435) 2 years ago
repo-wiki.js Enable spellcheck for EasyMDE, use contenteditable mode (#19776) 2 years ago
serviceworker.js Frontend refactor, PascalCase to camelCase, remove unused code (#17365) 3 years ago
sshkey-helper.js Use explicit jQuery import, remove unused eslint globals (#18435) 2 years ago
stopwatch.js Add eslint-plugin-sonarjs (#20431) 2 years ago
tablesort.js Added missing `data-` prefix. (#17884) 3 years ago
tribute.js Frontend refactor, PascalCase to camelCase, remove unused code (#17365) 3 years ago
user-auth-webauthn.js Prevent security failure due to bad APP_ID (#18678) 2 years ago
user-auth.js Use explicit jQuery import, remove unused eslint globals (#18435) 2 years ago
user-settings.js Use explicit jQuery import, remove unused eslint globals (#18435) 2 years ago