Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ajaxify.coldLoad which gets called from partials/footer/js.tpl
- Loading branch information
1 parent
4031a8c
commit 94da9fe
Showing
4 changed files
with
70 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<script defer src="{relative_path}/assets/nodebb.min.js?{config.cache-buster}"></script> | ||
|
||
{{{each scripts}}} | ||
<script defer type="text/javascript" src="{scripts.src}"></script> | ||
{{{end}}} | ||
|
||
<script> | ||
window.addEventListener('DOMContentLoaded', function () { | ||
require(['forum/footer']); | ||
<!-- IF useCustomJS --> | ||
{{customJS}} | ||
<!-- ENDIF useCustomJS --> | ||
$(document).ready(function () { | ||
ajaxify.coldLoad(); | ||
}); | ||
}); | ||
</script> |