0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-26 19:42:54 +01:00
gitea/web_src
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
..
fomantic Remove customized (unmaintained) dropdown, improve aria a11y for dropdown (#19861) 2022-06-03 17:38:26 -04:00
js Clean up and fix clone button script (#20415) 2022-07-31 20:29:55 +02:00
less Fix dashboard switching on Mobile (#20238) 2022-07-28 20:40:23 +02:00
svg Add Helm Chart registry (#19406) 2022-04-19 12:55:35 -04:00