Skip to content

Commit 321d92d

Browse files
authored
Merge pull request #8 from andreazorzi/development
Fix search table history back
2 parents 99d926b + 55a50fb commit 321d92d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

resources/js/main.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@ window.format_date = function(date, format = "Y-m-d"){
1212
else if(format == "d/m/Y"){
1313
return String(date.getDate()).padStart(2, '0') + "/" + String(date.getMonth() + 1).padStart(2, '0') + "/" + date.getFullYear();
1414
}
15-
}
15+
}
16+
17+
document.addEventListener("DOMContentLoaded", function() {
18+
setTimeout(function(){
19+
htmx.trigger("#page", "change");
20+
}, 100);
21+
});

0 commit comments

Comments
 (0)