Swap outerHTML by default
This commit is contained in:
parent
3118758f1d
commit
7477504508
@ -3,7 +3,6 @@
|
||||
class="item-button"
|
||||
title="Deactivate {{ .Source }}/{{ .Id }}"
|
||||
hx-target="closest article"
|
||||
hx-swap="outerHTML"
|
||||
hx-select="article"
|
||||
hx-delete="/item/{{ .Source }}/{{ .Id }}"
|
||||
>✕</button>
|
||||
@ -18,7 +17,6 @@
|
||||
class="item-button"
|
||||
title="{{ $key }}"
|
||||
hx-target="closest article"
|
||||
hx-swap="outerHTML"
|
||||
hx-select="article"
|
||||
hx-post="/item/{{ $.Source }}/{{ $.Id }}/action/{{ $key }}"
|
||||
>{{ $key }}</button>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMS41ZEdYUgAAAGFJREFUOE+lkFEKwDAIxXrzXXB3ckMm9EnAV/YRCxFCcUXEL3Jc77NDjpDA/VGL3RFWYEICfeGC8oQc9IPuCAnQDcoRVmBCAn3hgvKEHPSD7ggJ0A3KEVZgQgJ94YLSJ9YDUzNGDXGZ/JEAAAAASUVORK5CYII=">
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<script src="/htmx.org@2.0.4.js"></script>
|
||||
<meta name="htmx-config" content='{"ignoreTitle":true}'>
|
||||
<meta name="htmx-config" content='{"ignoreTitle":true,"defaultSwapStyle":"outerHTML"}'>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
|
Loading…
Reference in New Issue
Block a user