mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-31 07:03:37 +08:00
0f4b0cf892
1. correct the modal usage on "admin email list" page (then `web_src/js/features/admin/emails.ts` is removed) 2. use `addDelegatedEventListener` instead of `jQuery().on` 3. more jQuery related changes and remove jQuery from `web_src/js/features/common-button.ts` 4. improve `confirmModal` to make it support header, and remove incorrect double-escaping 5. fix more typescript related types 6. fine tune devtest pages and add more tests
17 lines
677 B
Handlebars
17 lines
677 B
Handlebars
{{template "devtest/devtest-header"}}
|
|
<div class="page-content devtest ui container">
|
|
<div>
|
|
<h1>Show/Hide panel</h1>
|
|
<div>
|
|
<!-- to test Space/Enter also works on non-button buttons with children -->
|
|
<div tabindex="0" class="ui button show-panel toggle" data-panel="#devtest-panel-show-hide"><span>Toggle panel 1</span></div>
|
|
<span tabindex="0" class="ui button show-panel" data-panel="#devtest-panel-show-hide"><span>Show panel 1</span></span>
|
|
</div>
|
|
<div id="devtest-panel-show-hide">
|
|
<div>Panel 1 content</div>
|
|
<div class="ui button hide-panel" data-panel-closest="div">Hide panel 1</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "devtest/devtest-footer"}}
|