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.
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
..
branch Add disable download source configuration (#20548) 2 years ago
diff Refactor `i18n` to `locale` (#20153) 2 years ago
editor Refactor `i18n` to `locale` (#20153) 2 years ago
find Refactor `i18n` to `locale` (#20153) 2 years ago
graph Propagate context and ensure git commands run in request context (#17868) 2 years ago
issue Fix default merge style (#20564) 2 years ago
migrate Remove blue text on migrate page (#20273) 2 years ago
projects Refactor `i18n` to `locale` (#20153) 2 years ago
pulls Refactor `i18n` to `locale` (#20153) 2 years ago
release Add disable download source configuration (#20548) 2 years ago
settings Implement sync push mirror on commit (#19411) 2 years ago
wiki Clean up and fix clone button script (#20415) 2 years ago
activity.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
blame.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
branch_dropdown.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
clone_buttons.tmpl Clean up and fix clone button script (#20415) 2 years ago
clone_script.tmpl Clean up and fix clone button script (#20415) 2 years ago
commit_page.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
commit_status.tmpl Show dropdown with all statuses for commit (#13977) 4 years ago
commit_statuses.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
commits.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
commits_list.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
commits_list_small.tmpl Fix a broken link in `commits_list_small.tmpl` (#18763) 2 years ago
commits_table.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
create.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
empty.tmpl Clean up and fix clone button script (#20415) 2 years ago
forks.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
graph.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
header.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
home.tmpl Clean up and fix clone button script (#20415) 2 years ago
icon.tmpl Do not display org avatar near icon for internal repos (#13957) 4 years ago
packages.tmpl Add Package Registry (#16510) 2 years ago
search.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
shabox_badge.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
sub_menu.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
unicode_escape_prompt.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
upload.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
user_cards.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
view_file.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
view_list.tmpl Use body text color in repository files table links (#20386) 2 years ago
watchers.tmpl Add class to page content to unify top margin (#13766) 4 years ago