mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 15:25:26 +00:00
Merge pull request #411 from jens/trigger-history-restored-after-restore
Trigger historyRestored after history actually has been restored
This commit is contained in:
commit
017e3a065e
@ -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