mirror of
https://github.com/itflow-org/itflow
synced 2026-11-23 12:57:24 +00:00
Version ITFlow's scripts and stylesheets so browsers fetch the new copies after an update instead of needing a cache clear: add staticFileUrl() in functions/app.php, which adds ?v= and the file's modification time to the address, and send every script and stylesheet tag through it, libs included, with page-relative addresses changed to start from the site root; add js/tinymce_defaults.js to set TinyMCE's cache_suffix so the plugins, theme and skins it loads itself are versioned too; load ticket collision detection only when a ticket is shown, so a ticket that isn't found no longer throws a script error; add changelog entries and a CONTRIBUTING rule that new tags must use staticFileUrl()
This commit is contained in:
@@ -332,8 +332,8 @@ $required_url = "modals/document_template/document_template_required.php?id=$doc
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="../js/pretty_content.js"></script>
|
||||
<script src="../libs/SortableJS/Sortable.min.js"></script>
|
||||
<script src="<?= staticFileUrl('/js/pretty_content.js') ?>"></script>
|
||||
<script src="<?= staticFileUrl('/libs/SortableJS/Sortable.min.js') ?>"></script>
|
||||
<script>
|
||||
(function () {
|
||||
var list = document.getElementById('documentTemplateFillIns');
|
||||
|
||||
Reference in New Issue
Block a user