templates: bust all js caches with resource_version

This commit is contained in:
Zankaria 2024-08-22 00:09:28 +02:00
parent b438283e32
commit abfa773282
6 changed files with 25 additions and 25 deletions

View file

@ -11,8 +11,8 @@
</script>
<title>{{ settings.title }}</title>
{% include 'header.html' %}
<script src='/js/moment.min.js'></script>
<script src='/js/fullcalendar.min.js'></script>
<script src='/js/moment.min.js?v={{ config.resource_version }}'></script>
<script src='/js/fullcalendar.min.js?v={{ config.resource_version }}'></script>
</head>
<body class="8chan vichan {% if mod %}is-moderator{% else %}is-not-moderator{% endif %}" data-stylesheet="{% if config.default_stylesheet.1 != '' %}{{ config.default_stylesheet.1 }}{% else %}default{% endif %}">
<div class="bar top">
@ -25,11 +25,11 @@
<div class="ban">
<div id='calendar'></div>
</div>
<hr/>
<footer>
<p class="unimportant" style="margin-top:20px;text-align:center;">- <a href="https://github.com/savetheinternet/Tinyboard">Tinyboard</a> +
<a href='https://github.com/vichan-devel/vichan'>vichan</a> +
<p class="unimportant" style="margin-top:20px;text-align:center;">- <a href="https://github.com/savetheinternet/Tinyboard">Tinyboard</a> +
<a href='https://github.com/vichan-devel/vichan'>vichan</a> +
<a href='https://github.com/lainchan/lainchan'>lainchan</a> {{ config.version }} -
<br><a href="https://github.com/savetheinternet/Tinyboard">Tinyboard</a> Copyright &copy; 2010-2014 Tinyboard Development Group
<br><a href="https://github.com/vichan-devel/vichan">vichan</a> Copyright &copy; 2012-2016 vichan-devel
@ -56,7 +56,7 @@
event.allDay = false;
}
element.find('.fc-title').append("<br/>" + event.description);
element.css('background-color',event.color);
element.css('background-color',event.color);
},
selectable: true,
selectHelper: true,
@ -102,7 +102,7 @@
url: url,
color:color,
},
true
true
);
}
calendar.fullCalendar('unselect');
@ -138,7 +138,7 @@
});
},
eventClick: function(event) {
var decision = confirm("Do you really want to do that?");
var decision = confirm("Do you really want to do that?");
if (decision) {
$.ajax({
type: "POST",