mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 15:25:26 +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) {
|
function restoreHistory(path) {
|
||||||
saveHistory();
|
saveHistory();
|
||||||
path = path || location.pathname+location.search;
|
path = path || location.pathname+location.search;
|
||||||
triggerEvent(getDocument().body, "htmx:historyRestore", {path:path});
|
|
||||||
var cached = getCachedHistory(path);
|
var cached = getCachedHistory(path);
|
||||||
if (cached) {
|
if (cached) {
|
||||||
var fragment = makeFragment(cached.content);
|
var fragment = makeFragment(cached.content);
|
||||||
@ -1544,6 +1543,7 @@ return (function () {
|
|||||||
loadHistoryFromServer(path);
|
loadHistoryFromServer(path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
triggerEvent(getDocument().body, "htmx:historyRestore", {path:path});
|
||||||
}
|
}
|
||||||
|
|
||||||
function shouldPush(elt) {
|
function shouldPush(elt) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user