This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
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.
2022-07-31 20:29:55 +02:00
..
comp Enable spellcheck for EasyMDE, use contenteditable mode (#19776) 2022-06-29 01:52:58 +08:00
admin-common.js
admin-emails.js
admin-users.js
aria.js
aria.md
clipboard.js
codeeditor.js
colorpicker.js
common-global.js Fix ROOT_URL detection for URLs without trailing slash (#20502) 2022-07-27 17:19:10 +08:00
common-issue.js Add a checkbox to select all issues/PRs (#20177) 2022-07-28 18:25:18 +08:00
common-organization.js
contextpopup.js Use tippy.js for context popup (#20393) 2022-07-19 00:33:34 +02:00
dropzone.js
emoji.js
eventsource.sharedworker.js
file-fold.js
formatting.js Prettify number of issues (#17760) 2022-06-12 20:08:23 +08:00
heatmap.js
imagediff.js Fix viewed images not loading in a PR (#19919) 2022-06-08 18:19:06 +01:00
install.js
notification.js
org-team.js
pull-view-file.js Replace unstyled meter with progress (#19968) 2022-06-15 12:28:24 +08:00
repo-branch.js
repo-code.js
repo-commit.js Fix a JS error in initRepoCommitLastCommitLoader's entryMap (#19996) 2022-06-17 17:44:35 +08:00
repo-common.js Clean up and fix clone button script (#20415) 2022-07-31 20:29:55 +02:00
repo-diff.js Init popup for new code comment (#20234) 2022-07-05 13:28:31 +01:00
repo-editor.js
repo-findfile.js Feature: Find files in repo (#15028) 2022-06-09 14:15:08 +03:00
repo-graph.js
repo-home.js A minimal change to replace data calls with attr as per guidelines (#19900) 2022-06-06 12:58:53 +08:00
repo-issue-content.js
repo-issue-pr-form.js
repo-issue.js Enable spellcheck for EasyMDE, use contenteditable mode (#19776) 2022-06-29 01:52:58 +08:00
repo-legacy.js Enable spellcheck for EasyMDE, use contenteditable mode (#19776) 2022-06-29 01:52:58 +08:00
repo-migrate.js
repo-migration.js
repo-projects.js Fix various typos (#20338) 2022-07-12 23:32:37 +02:00
repo-release.js Enable spellcheck for EasyMDE, use contenteditable mode (#19776) 2022-06-29 01:52:58 +08:00
repo-settings.js
repo-template.js
repo-unicode-escape.js
repo-wiki.js Enable spellcheck for EasyMDE, use contenteditable mode (#19776) 2022-06-29 01:52:58 +08:00
serviceworker.js
sshkey-helper.js
stopwatch.js Add eslint-plugin-sonarjs (#20431) 2022-07-22 09:10:22 +08:00
tablesort.js
tribute.js
user-auth-webauthn.js
user-auth.js
user-settings.js