loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Revert "Make buttons in a modal form have proper type. (#25446)" (#25485)

There is a side effect because some modal doesn't have a proper "ok"
button.

This reverts commit a954c93a68072042aa7dad717b6fa002c83a58fb.

authored by

wxiaoguang and committed by
GitHub
b8253607 77e449f0

-2
-2
web_src/js/features/common-global.js
··· 395 395 if (colorPickers.length > 0) { 396 396 initCompColorPicker(); // FIXME: this might cause duplicate init 397 397 } 398 - // all non-"ok" buttons which do not have "type" should not submit the form, should not be triggered by "Enter" 399 - $modal.find('form button:not(.ok):not([type])').attr('type', 'button'); 400 398 $modal.modal('setting', { 401 399 onApprove: () => { 402 400 // "form-fetch-action" can handle network errors gracefully,