forgejo/web_src/js
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
..
components Fix default merge style (#20564) 2022-07-31 17:13:31 +02:00
features Clean up and fix clone button script (#20415) 2022-07-31 20:29:55 +02:00
markup Various Mermaid improvements (#18776) 2022-02-16 11:28:29 +08:00
modules Use tippy.js for context popup (#20393) 2022-07-19 00:33:34 +02:00
standalone Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
testUtils Update JS dependencies (#19675) 2022-05-10 21:44:36 +02:00
bootstrap.js Bypass Firefox (iOS) bug (#20244) 2022-07-05 13:27:13 +01:00
index.js Init popup for new code comment (#20234) 2022-07-05 13:28:31 +01:00
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 2020-04-18 18:46:29 -04:00
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 2020-05-24 08:36:40 +01:00
svg.js Auto merge pull requests when all checks succeeded via WebUI (#19648) 2022-06-11 16:44:20 +02:00
svg.test.js Add copy button to markdown code blocks (#17638) 2021-11-16 16:16:05 +08:00
utils.js Add eslint-plugin-sonarjs (#20431) 2022-07-22 09:10:22 +08:00
utils.test.js Prettify number of issues (#17760) 2022-06-12 20:08:23 +08:00