Swap outerHTML by default

This commit is contained in:
Tim Van Baak 2025-01-29 19:34:25 -08:00
parent 3118758f1d
commit 7477504508
2 changed files with 1 additions and 3 deletions

View File

@ -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 }}"
>&#10005;</button> >&#10005;</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>

View File

@ -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>