diff options
author | Carson Gross <carson@bigsky.software> | 2022-06-29 16:05:39 -0600 |
---|---|---|
committer | Carson Gross <carson@bigsky.software> | 2022-06-29 16:05:39 -0600 |
commit | 212b37d1ba3966fe60214581226adc498ba5eb31 (patch) | |
tree | 783b16285bb88decf9e12c458db5c751f983b10d /dist/htmx.js | |
parent | 977ef65c901cf846379fcc87a646b41775b4b9cd (diff) | |
download | htmx-212b37d1ba3966fe60214581226adc498ba5eb31.tar.gz htmx-212b37d1ba3966fe60214581226adc498ba5eb31.zip |
1.8 release prep
Diffstat (limited to 'dist/htmx.js')
-rw-r--r-- | dist/htmx.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dist/htmx.js b/dist/htmx.js index 5845dd17..2d06cf26 100644 --- a/dist/htmx.js +++ b/dist/htmx.js @@ -1228,12 +1228,10 @@ return (function () { if (elt.tagName === "A") { verb = "get"; path = getRawAttribute(elt, 'href'); - nodeData.pushURL = true; } else { var rawAttribute = getRawAttribute(elt, "method"); verb = rawAttribute ? rawAttribute.toLowerCase() : "get"; if (verb === "get") { - nodeData.pushURL = true; } path = getRawAttribute(elt, 'action'); } @@ -2012,13 +2010,12 @@ return (function () { function shouldPushUrl(elt) { var pushUrl = getClosestAttributeValue(elt, "hx-push-url"); - return (pushUrl && pushUrl !== "false") || - (getInternalData(elt).boosted && getInternalData(elt).pushURL); + return (pushUrl && pushUrl !== "false") || (getInternalData(elt).boosted); } function shouldReplaceUrl(elt) { - var pushUrl = getClosestAttributeValue(elt, "hx-replace-url"); - return (pushUrl && pushUrl !== "false"); + var replaceUrl = getClosestAttributeValue(elt, "hx-replace-url"); + return (replaceUrl && replaceUrl !== "false"); } function getPushOrReplaceUrl(elt, type) { @@ -2956,6 +2953,9 @@ return (function () { } var swapOverride = etc.swapOverride; + if (hasHeader(xhr,/HX-Reswap:/i)) { + swapOverride = xhr.getResponseHeader("HX-Reswap"); + } var swapSpec = getSwapSpecification(elt, swapOverride); target.classList.add(htmx.config.swappingClass); |