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