mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 07:21:05 +00:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
a679dea62c
@ -1526,7 +1526,6 @@ return (function () {
|
||||
function restoreHistory(path) {
|
||||
saveHistory();
|
||||
path = path || location.pathname+location.search;
|
||||
triggerEvent(getDocument().body, "htmx:historyRestore", {path:path});
|
||||
var cached = getCachedHistory(path);
|
||||
if (cached) {
|
||||
var fragment = makeFragment(cached.content);
|
||||
@ -1544,6 +1543,7 @@ return (function () {
|
||||
loadHistoryFromServer(path);
|
||||
}
|
||||
}
|
||||
triggerEvent(getDocument().body, "htmx:historyRestore", {path:path});
|
||||
}
|
||||
|
||||
function shouldPush(elt) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user