0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-29 14:56:20 +01:00
gitea/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
heatmap.js
imagediff.js
install.js
notification.js
org-team.js
pull-view-file.js
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
repo-graph.js
repo-home.js
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